[Mailman-Users] Topics regex

Mark Sapiro msapiro at value.net
Mon Sep 18 22:10:49 CEST 2006


Tobey Wheelock wrote: 
>Subject: Loc: Test
>
>This is my regex:
>^(Re: \[Rappnet\] )?Loc(al)?[:.]
>
>It catches the initial posts but not the replies.

It's not documented, but Topic regexps are compiled in VERBOSE mode
which means that unescaped whitespace outside of character classes is
ignored. This and other issues with Topic regexps are fixed for
Mailman 2.2, but for now, you need your regexp to be

^(Re:\ \[Rappnet\]\ )?Loc(al)?[:.]

however you will still have issues with subjects like

Re: Re: [Rappnet] Local: something

Re: Fwd: [Rappnet] Local: something

Re(2): [Rappnet] Local: something

and so forth.

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list