On Tue, 03 Feb 2015 21:43:09 -0000, Mark Sapiro <[email protected]> wrote:
In Mailman, with Python regexps
<https://docs.python.org/2/library/re.html>, I would use

^Subject:.*\Wtest\W

\W matches any 'non-word' character and is equivalent to [^a-zA-Z0-9_],
i.e. anything including new-line which is not a letter, digit or underscore.

I trap with - ^subject:.*\btest.* - accepting \W is the better option, I tail it with .* as I want to catch 'testing' as well as 'test' :-)

I also have traps - ^subject:.*virus.* - on 'virus', 'spam' and 'digest' :-)

What I would really like is a (simple) way to trap the absence of a subject header but I think, we can (understandably) only trap on the content of something that is present :-(

= Malcolm.

--
Malcolm Austen <[email protected]>
GENUKI trustee <[email protected]>
Pedigree User Group <[email protected]>
Oxfordshire FHS <[email protected]>
FFHS Communications Officer <[email protected]>
------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to