Hmmm -- may I suggest adding a test on message size before feeding a
(possibly huge) msg body to the regex?
:0: # I chose 500 bytes to allow for maillists with many relay-hops
* < 500
* $ B ?? ^^([$WS]|$)*^^
empty-body.mbox
Is okay with me, but as Ruud notes in a follow-up, I think the buffer
size for the buffer that holds the e-mail is limited by LINEBUF.
A small refinement:
:0 B: # only apply the test to the body
* < 500
* $ B ?? ^^([$WS]|$)*^^
empty-body.mbox
This way we don't have worry about the variable size of the header.
500 bytes is just an arbitrarily medium sized number. If a blank message
with more that 500 bytes of white space comes through we'll miss it.
Alternatively, can we score it?
STOP=-9876543210
:0 B:
* $ $STOP^0 [^$WS]
empty-body.mbox
voila, no buffer!
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail