procmail
[Top] [All Lists]

Re: attachment filtering

2007-03-20 09:47:57
Bart Schaefer wrote:
On 3/19/07, Justin Zygmont <justin(_at_)cityfone(_dot_)net> wrote:
Does anyone know of a way so the email attachments are not searched in a
recipe?

Procmail doesn't know about attachment formats, only about the
distinction between message header and message body.  So if you're
searching the message body, you search the attachments.

The workaround is to first extract the interesting part of the message
body, and then search that.  For example, download

http://www.well.com/user/barts/email/mimepart.txt

Then in your procmailrc, do

INCLUDERC=/your/path/to/mimepart.txt

:0:
* BODY_PART ?? (QCPC|HPGI)
/var/mail/spambox

____________________________________________________________
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


Thanks a lot to everyone for your help.  I am using mimepart.txt now, 
and it seems to be working well.



-- 
Justin Zygmont
System and Network Administrator
Cityfone Telecommunications Inc

604.629.8841
justin at cityfone dot net

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