procmail
[Top] [All Lists]

Re: Yank out attachment filename and save attachment

2007-04-17 14:31:50
DR. Lee - NS1 schreef:

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"

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

  :0 B
  * ^Content-(Disposition|Type):[^;]+;\
   (^[  ])?[  ]*(file)?name=\"?.*\/[^"]+
  { ATTACH = $MATCH }

As usual, the [  ] should contain a space and a tab.

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

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