procmail
[Top] [All Lists]

Re: [procmail] Finding mail size

2002-04-09 10:21:30
"Ruud H.G. van Tol" <rvtol(_at_)isolution(_dot_)nl> writes:
...
Something along these lines:

 maxFileSize = 1000000

 :0 B
 * $ > $maxFileSize
 /dev/null

And then maybe a ":0 E"-recipe.

Two notes: first of all, the 'H' and 'B' flags don't have any effect on
'>' and '<' conditions; they check the size of the entire message unless
overridden directly using the "var ??" form.

Secondly, you don't need the '$' at the beginning of the condition there,
as procmail always performs variable expansion on the text after the
'>' or '<' in size conditions.  (No, I don't think that's documented
anywhere right now.)


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>