On 5/14/22 09:58, frank.thommen@gmx.net wrote:
That's what I thought, but then why does '^(OK|WARN|CRIT|UP|DOWN) ->' not lead to an email with the respective topic but '^(OK|WARN|CRIT|UP|DOWN)' does?
I think this is an issue that was fixed in Mailman 2.1.19 by https://bazaar.launchpad.net/~mailman-coders/mailman/2.1/revision/1516/Mailm...
Prior to that the regexps for topic matches were compiled in verbose mode. You indicated in your OP that the regexp for your topic was
^(OK|WARN|CRIT|UP|DOWN) ->
^(OK|WARN|CRIT|UP|DOWN) \-
Prior to Mailman 2.1.19, this was compiled in verbose mode. That worked if the lines were simply keywords, but if they were more complex regexps, this didn't work. The fix in 2.1.19 was to simply or
the lines which works more as expected.
In Mailman <2.1.19, that two line regexp compiled in verbose mode won't match, e.g., OK -> anything
. In fact it's simpler than that. Even the single line regexp ^(OK|WARN|CRIT|UP|DOWN) ->
compiled in verbose mode won't match because of the space, but ^(OK|WARN|CRIT|UP|DOWN)\ ->
will.
Thus, this is a bug in Mailman <2.1.19, but you can work around it by \
escaping the space or using \s
.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan