procmail
[Top] [All Lists]

Re: sort by size -- must have multigram ?

1997-01-13 22:58:13
dattier(_at_)wwa(_dot_)com (David W. Tamkin) writes:
Procmail has built-in size testing conditions:

 :0
 * > 10240
 do_this

If you want to measure only the body, though, and ignore the size of the
head, it's a little more complicated, because ">" and "<" do not respond
(last I knew) to the H and B flags:

This is correct.  However, as of version 3.11pre (not sure which),
">" and "<" _do_ correctly work with "H ??" and "B ??", ala:

:0
* B ?? > 10240
do_this

This inconsistency is definately a wart, though I'm mixed on whether to
call it a bug.  Either it should be changed or a minor documentation
tweak documenting the behavior should probably be made.  Hmm...

Philip Guenther

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