Differences between revisions 1 and 2
Revision 1 as of 2009-05-25 17:35:10
Size: 1285
Editor: msapiro
Comment:
Revision 2 as of 2009-05-25 17:35:11
Size: 1288
Editor: msapiro
Comment: Migrated to Confluence 4.0
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/14352714 #pragma page-filename DOC/versions/8683547
Line 20: Line 20:
{{{
Line 22: Line 22:

word2
|
word2|
Line 26: Line 24:
}}}

There is a problem with the documentation vs. the implementation of Topics in Mailman 2.1. This will be corrected in Mailman 2.2.

The problem is the documentation says that you can put keywords in the regexp box for a topic with one word per line, but the contents of the regexp box is actually compiled as a single regexp in VERBOSE mode. This means that all the lines are just concatenated and all unescaped whitespace is removed. Thus, if one puts

word1
word2
a phrase

the resultant regexp is

word1word2aphrase

which is unlikely to match anything. To achieve the intent of this example, you need something like

word1|
word2|
a\ phrase

or equivalently

word1|word2|a\ phrase

In other words you need to escape with a '\' any significant whitespace and put the 'or' operator ('|') at the end of all but the last line.

Note that the match is always case insensitive.

For Mailman 2.2, the lines will be joined by Mailman with the '|' operator into a single line which is compiled in non-VERBOSE mode so whitespace will also be preserved. Existing 2.1 regexps will be converted to the equivalent 2.2 regexp by Mailman's upgrade process on initial upgrade from 2.1 to 2.2.

MailmanWiki: DOC/Why don't topics work in Mailman 2.1.x? (last edited 2015-03-07 06:51:55 by msapiro)