procmail
[Top] [All Lists]

RE: empty body

2004-02-07 01:36:36



From: Gary Funck
Sent: Saturday, February 07, 2004 12:08 AM
[...]

This works also,

NL="
"

:0:
* B ?? ^^[    $NL]*^^
blank-mail

where that's a <space><tab> inside [ ], and NL is a variable set equal to
<newline>.
In this case it'll catch mail's whose bodies are empty, or all 
white space.


Correction, need to tell procmail to expand the $NL variable.
Add a $ at the beginning of the test condition line:

NL="
"

:0:
* $ B ?? ^^[    $NL]*^^
blank-mail


_______________________________________________
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>