procmail
[Top] [All Lists]

Re: Attachment extraction

2006-02-15 16:49:08

I am interested in writing a recipe that would copy (not remove) the
images attached to an email into a specified folder (and possibly change
modes on them) so that I can easily see the image attachments with a web
browser.


METAMAIL_TMPDIR="/the/dir"
:0 bc
| sed -e \
'/\<[tT]ype\>.*[mM]ultipart\/[aA]lternative/s/\/[aA]lternative/\/mixed/' \
-e 's/=?..*?=/XXX/g' | metamail -r -y -w -q -x 2>/dev/null


        You will find the files in the $METAMAIL_TMPDIR

        Note that I had to rewrite your message again - please use plan
        text when you send to mailinglistes!

Bye,
  Udi

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>