On Fri, Mar 19, 2004 at 04:37:04PM +0100, Ruud H.G. van Tol wrote:
Toen ik Dallman Ross kietelde, kwam er dit uit:
{ B_head = $MATCH ANYCHAR128 # 'shroom 'em out }
YM:
{ B_head = $MATCH ANYCHAR128 } # 'shroom one out
(the # makes the } comment)
I don't see any errors in my log from running it as I had it.
But I suppose that's because procmail doesn't care if the trailing
closing brace is missing. Hmm.
I would have stopped at ANYCHAR32 and have used that 4 times
in the condition.
Hmm, you know, we could do this easier (for procmail) with an
else-on-failure.
# ANYCHAR = "(.|$)?"
ANYCHAR = "(.|$)" # N.B.: the '?' is now gone!
ANYCHAR2 = "$ANYCHAR$ANYCHAR" ANYCHAR # 'shroom 'em out
ANYCHAR4 = "$ANYCHAR2$ANYCHAR2" ANYCHAR2 # 'shroom 'em out
ANYCHAR8 = "$ANYCHAR4$ANYCHAR4" ANYCHAR4 # 'shroom 'em out
ANYCHAR16 = "$ANYCHAR8$ANYCHAR8" ANYCHAR8 # 'shroom 'em out
ANYCHAR32 = "$ANYCHAR16$ANYCHAR16" ANYCHAR16 # 'shroom 'em out
ANYCHAR64 = "$ANYCHAR32$ANYCHAR32" ANYCHAR32 # 'shroom 'em out
ANYCHAR128 = "$ANYCHAR64$ANYCHAR64" ANYCHAR64 # 'shroom 'em out
:0
* $ B ?? ^^\/$ANYCHAR128
{ B_head = $MATCH }
ANYCHAR64 # 'shroom 'em out
:0 Eb # Else, body is fewer than $ANYCHAR128 bytes long
B_head=| cat
--
dman
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail