3 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] auto-saving certain t...
FromSent OnAttachments
Kurt LieberJan 28, 2006 6:45 pm 
Sam VarshavchikJan 28, 2006 7:40 pm 
Ajay SharmaMar 9, 2006 12:06 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] auto-saving certain types of attachments from certain email addressesActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Jan 28, 2006 7:40:38 pm
List:net.sourceforge.lists.courier-maildrop

Kurt Lieber writes:

I'd like to be able to auto-save certain types of attachments from certain addresses. I believe reformime will do what I want, but I can't find any examples on how to use it. Specifically, I can't figure out how to only save certain types of attachments (such as gifs, jpegs and pngs)

In psuedo-code, what I'm looking for is something that will do:

"if from: fo@bar.com and has attachment of type (gif|jpeg|png) then save attachment to /tmp/mail/$date/"

Is this even possible w/ maildrop?

You are on the right track with reformime -- however MIME parsing is a deceivingly complicated topic. The necessary voodoo combination of a maildrop recipe, reformime invocation, and supporting shell scripts will be a bit of a large hairball to swallow.

I think you should invest some time into learning how MIME works. Once you understand what “attachment” actually means -- what it is and isn't -- you'll have a much better grasp on what you need to do with reformime.

This is not really something that can be explained in one or two sentences.