DR. Lee - NS1 schreef:
I try to yank out the filename of the attachment
and save the attachment to the original filename
There are ready made tools for that.
:0 b
* .*filename
ATTACH=|grep filename
:0 B
* ^Content-.*filename=\"?\/[^"]*
{ ATTACH = $MATCH }
(untested)
Typical MIME-header structure:
Content-Type: application/pdf; name="072140.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="072140.pdf"
<empty line>
<data>
--
Groet, Ruud
____________________________________________________________
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