procmail
[Top] [All Lists]

Re: Phantom lines in empty body

2004-06-20 21:10:48
On Sun, Jun 20, 2004 at  5:16:46PM -0700, Gary Funck wrote:
My favorite was:

STOP=-9876543210
SPACE = " "
TAB = "       "
NL = "
"
WS = "$SPACE$TAB$NL"

:0 B:
* 1^0
* $ $STOP^0 [^$WS]
empty-body.mbox

If I'm not mistaken, the differences between Gary's favorite and my
original recipe is the inclusion of a newline in the second condition,
as well as the large -w value on the scoring part.  I haven't thought
through all the implications of including the newline, but the large
-w is definitely a winner.

Thing is, on my ISP's setup, the :0 B part fails.  Even with 1^0
as the first condition, I get over 1K plus score, when by rights,
the most 1^0 should ever accumulate is 1.0!  At least it works
if I move the B to the condition line.  They all work as expected
on my Intel Linux machine at home.  Very strange...

Thanks again,

Jim

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