* John Conover <conover(_at_)rahul(_dot_)net> [02.07.2009 20:30]:
Thomas Goebel writes:
i want to add a filter which sends an auto-reply if there are
MS-Office files attached to the mail ...
:0
* 2147483647^0 $
^content-type:${ws}(multipart/(mixed|alternative|application|signed|encrypted))|(application/)
* 2147483647^0 $
^content-disposition:${ws}attachment;${ws}.*name${ws}=${ws}${dq}.*\.${ext}(\..*)?${dq}${ws}${eol}
* 2147483647^0 $ ^content-transfer-encoding:${ws}base64
{ MALICIOUS=true }
That works for me thanks! I just changed the line from you to:
ext='(doc|xls|ppt|exe)'
But if i a change {MALICIOUS...} to
| formail -r -k | msmtp -t -a account < $HOME/.mailreply
~/.procmail.log tells me that there is no recipient set. I thought
formail -r will automatically set a reply-to header and msmtp -t will
search for a reply-to header an send it to these?!
Tom
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
____________________________________________________________
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