procmail
[Top] [All Lists]

Re: Filter for message that have nothing but headers?

2004-10-19 09:14:36
Jim Witte wrote:

How would I write a filter for mail that had nothing but headers,
and no body text (from spambots that didn't get through Quality Assurance..)?

:0:
* ! B ?? [!-~]
emptybody

A body that appears empty will likely still have a newline or two in it.
The condition I proposed looks for of non-blank ASCII characters (the range of exclamation point through tilde) and fails if one is found.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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