procmail
[Top] [All Lists]

Re: Procmail filter sometimes failed...

2008-08-19 11:46:28
On Tue, 19 Aug 2008, [ISO-8859-1] josias gonçalves wrote:
    :0 B
     *^Content-Disposition: (attachment|inline)
     
*filename=".*\.(ocx|ade|adp|bas|bat|chm|cmd|com|cpl|crt|dll|exe|eml|hlp|hta|htt|inf|ins|isn|isp|js|jse|lnk|mdb|mde|msc|msi|msp|mst|pcd|pif|reg|sc|scr|sct|shb|shs|vb|vbe|vbs|pps|pptx|ppsx|ppt|wsc|wsf|wma|wmv|avi|mp3|mp4|mpeg|mpg|mov|qiv|asf|mpe|wsh)"
if something attach is found, the e-mail will to /var/mail/attach
so, some e-mails, like one today (one with pps extension), pass
trought this rule.
is something wrong ? with this rule... thanks.

Two thoughts:

1) Sometimes the " is omitted (eg. filename=name.ext), so adjust your rule
   to make the quote character optional ("?)....
2) If the body is quoted printable or otherwise encoded, it might 'mask'
   the line. Not much you can do about that one....

If you really want to know for certain, examine the raw message in your
unix mailbox with a 'cat' or text editor....

- Charles

____________________________________________________________
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