[Mailman-Users] Trapping posts with no subject, and an apology
mike.maughan at gmail.com
Fri Mar 23 01:48:58 CET 2007
Thanks again, Mark.
I've implemented the recommendations; now all I have to do is decipher your
On 23/03/07, Mark Sapiro <msapiro at value.net> wrote:
> 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
> 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.
More information about the Mailman-Users