procmail
[Top] [All Lists]

Re: Recipe for killing messages with no subject

2004-07-20 08:16:51
Dallman Ross wrote:
On Tue, Jul 20, 2004 at 05:22:35PM +1000, Stephen Kuhn wrote:


Is there a simple recipe for killing inbound emails that do not have a
subject?


How about either no subject or blank subject?

   :0  # inside brackets are a caret, space, and tab
   * ! ^Subject:.*[^    ]
   fails_on_subject

This will only match on SINGLE LINE headers with no subject, correct? Although somewhat uncommon, a header CAN span multiple lines. I've received legitimate (list) mails with Subject: headers that span two lines, with some that (oddly) have no text after the Subject: on the 1st, but some one the 2nd.

- Bob

____________________________________________________________
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