On Tue, 03 Feb 2015 21:43:09 -0000, Mark Sapiro <m...@msapiro.net> 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 <malcolm.aus...@weald.org.uk>
GENUKI trustee <gen...@weald.org.uk>
Pedigree User Group <chair...@pugweb.org.uk>
Oxfordshire FHS <webmas...@ofhs.org.uk>
FFHS Communications Officer <communicati...@ffhs.org.uk>
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
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