On 5/12/22 10:45, Frank Thommen wrote:
Dear all,
I'm trying to implement Mailman topics through regular expressions.
However I'm not sure, what expression types are supported. I was trying
* ^(OK|WARN|CRIT|UP|DOWN) ->
* ^(OK|WARN|CRIT|UP|DOWN) \-
to catch subject lines like "OK -> CRIT some text" and "UP -> DOWN some
text" ecc. The regexpes above don't catch these mail, even though they
should be perfectly ok according to several regular expression testers.
Interestingly
* ^(OK|WARN|CRIT|UP|DOWN)
/does/ match, but I require the trailing " ->" to discern from other,
very similar subjects.
I'm not sure what the asterisks are, maybe bullets?
The regexp '^(OK|WARN|CRIT|UP|DOWN) ->' should match, e.g.
```
Subject: OK -> anything
```
I also didn't find any reference documentation regarding the supported
regular expression syntax. Is there any?
https://docs.python.org/2.7/library/re.html
Out Mailman version is 2.1.9
Really? 2.1.9 is over 15 years old and 30 releases behind.
--
Mark Sapiro <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/[email protected]/
https://mail.python.org/archives/list/[email protected]/