procmail
[Top] [All Lists]

RE: Yank out attachment filename and save attachment

2007-04-17 07:42:41



Groet, Ruud Wrote:

:0 b
* .*filename
ATTACH=|grep filename

 :0 B 
 * ^Content-.*filename=\"?\/[^"]* 
 { ATTACH = $MATCH } 

(untested)

:0 B
* ^(Content-.*filename=\".*\/[^"]*|     .*filename=\".*\/[^"]*)
{ ATTACH = $MATCH }

Thanks, I follow your suggestion and got it working as follow (but still
can not understand why b does not work!)
Because my Outlook send mail to Linux server with multiple line like
this:

Content-Type: application/vnd.ms-excel;
        name="Penit_Service_Log_v1.xls"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="Penit_Service_Log_v1.xls"


Typical MIME-header structure:

Content-Type: application/pdf; name="072140.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="072140.pdf"
<empty line>
<data>

Rgds,
Kwang Fuh Lee.


____________________________________________________________
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


____________________________________________________________
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>