Re: [Mailman-Users] Regular expressions in list config files?

2008-03-03 Thread bernholdtde
On Fri, 29 Feb 2008 19:53:15 -0800 Mark Sapiro wrote: > I suspect you have an old Mailman version. Prior to Mailman 2.1.7, the > regular expression search was not multiline That's the answer, I'm using 2.1.5 from RHEL 4. Thanks very much for your help with this! -- David E. Bernholdt

Re: [Mailman-Users] Regular expressions in list config files?

2008-02-29 Thread Mark Sapiro
Mark Sapiro wrote: >[EMAIL PROTECTED] wrote: >> >>Here's the result: In applying header_filter_rules, it looks like the >>entire set of headers is being treated as a single multiline string. > > >That is correct. > > >>For reasons I don't entirely understand (remember I'm not a python >>expert), "

Re: [Mailman-Users] Regular expressions in list config files?

2008-02-29 Thread Mark Sapiro
[EMAIL PROTECTED] wrote: > >Here's the result: In applying header_filter_rules, it looks like the >entire set of headers is being treated as a single multiline string. That is correct. >For reasons I don't entirely understand (remember I'm not a python >expert), "^" and "$" are not matching the

Re: [Mailman-Users] Regular expressions in list config files?

2008-02-29 Thread bernholdtde
Okay, it looks like the header_filter_rules are getting set correctly through all interfaces, including the web u/i -- I have been unable to reproduce the errors I had initially observed with escaping of backslashes. Perhaps I got my tests muddled. I've also spent some time figuring out why even

Re: [Mailman-Users] Regular expressions in list config files?

2008-02-19 Thread Mark Sapiro
[EMAIL PROTECTED] wrote: >On Tue, 19 Feb 2008 08:35:12 -0800 Mark Sapiro wrote: >> Are you saying you see this with bin/dumpdb of the config.pck. If so, >> that's just the way python is showing the representation of the >> string. It is not the actual value of the string. If you doubt that, >> tr

Re: [Mailman-Users] Regular expressions in list config files?

2008-02-19 Thread bernholdtde
On Tue, 19 Feb 2008 08:35:12 -0800 Mark Sapiro wrote: > Are you saying you see this with bin/dumpdb of the config.pck. If so, > that's just the way python is showing the representation of the > string. It is not the actual value of the string. If you doubt that, > try 'strings' instead of 'bin/dum

Re: [Mailman-Users] Regular expressions in list config files?

2008-02-19 Thread Mark Sapiro
[EMAIL PROTECTED] wrote: > >If I use a simple regex, like >'^x-spam-flag: *yes' >it seems to show up properly in the configuration. But if I use a >more precise regex that accounts for all forms of whitespace with the >"\s" sequence, like this >'^\s*x-s

[Mailman-Users] Regular expressions in list config files?

2008-02-19 Thread bernholdtde
Our corporate mail gateway adds a header to flag things it believes are spam. I'd like to be able to take advantage of this in my Mailman lists. I'm having some problems setting the header_filter_rules properly. If I use a simple regex, like '^x-spam-flag: *yes' it seem