[Mailman-Users] Trapping posts with no subject, and an apology
Mark Sapiro
msapiro at value.net
Fri Mar 23 01:33:32 CET 2007
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 <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list