Mike Maughan wrote:
>
>The cases I'd like to trap are:
>
>   1. empty subject
>   2. (no subject)
>   3. (no_subject)
>
>Is there an easy way?  Am I (as has been known on occasion :) missing
>something obvious?


You can trap all 3 of the above cases with a header_filter_rules rule
with the regexp

$subject:\s*(\(no[_ ]subject\))?\s*$

but there is a 4th case which this won't get which is the case where
the message contains no Subject: header at all. See
<http://mail.python.org/pipermail/mailman-users/2007-March/056119.html>
fo more information on how to deal with this case.

See <http://docs.python.org/lib/re-syntax.html> for information about
Python regular expressions.

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to