procmail
[Top] [All Lists]

Re: Parse body but not attachment

2002-01-04 18:36:28
PSE-L(_at_)mail(_dot_)professional(_dot_)org (Professional Software 
Engineering) writes:
...
Further, to parse the message body looking for individual file attachments 
would require *MORE* cycles than looking for your simple match string, so, 
how about "don't perform this scan on messages larger than some size 
threshold" ?   After all, it's the SIZE of the message that's killing you, 
not what it contains.  If that works for you, add the following at the top 
of your conditions:

* $ < 400000

Basically, this would say "only perform the rest of the conditions if this 
message is less than 400000 bytes".  See 'man procmailrc'

That condition would be better written without the '$'
        * < 400000

The '$' special on the beginning of condition tells procmail to perform
variable and command (backquote) expansion on the rest of the condition.
Since there are no (other) dollarsigns or backquotes in the condition,
this has no effect, so you might as well leave it out.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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