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

Re: [Mailman-Users] regular expressions in whitelists

2004-09-10 Thread Ian Eiloart
--On Friday, September 10, 2004 11:43 am +0200 martin f krafft <[EMAIL PROTECTED]> wrote: also sprach Ian Eiloart <[EMAIL PROTECTED]> [2004.09.10.1136 +0200]: > [EMAIL PROTECTED]@cvs\.ailab.\.ch$ ^ | ++ | That extra dot looks wro

Re: [Mailman-Users] regular expressions in whitelists

2004-09-10 Thread martin f krafft
also sprach Ian Eiloart <[EMAIL PROTECTED]> [2004.09.10.1136 +0200]: > > [EMAIL PROTECTED]@cvs\.ailab.\.ch$ > ^ > | >++ >| > That extra dot looks wrong Oh my. Sorry for the noise. There's something to be said about "four eyes see

Re: [Mailman-Users] regular expressions in whitelists

2004-09-10 Thread Ian Eiloart
--On Thursday, September 9, 2004 6:27 pm +0200 martin f krafft <[EMAIL PROTECTED]> wrote: I promise, I searched the web for this, but all I could find was information that I am doing this right. I am trying to get a CVS commits list to accept mails from our CVS domain, using the following regexp

[Mailman-Users] regular expressions in whitelists

2004-09-09 Thread martin f krafft
I promise, I searched the web for this, but all I could find was information that I am doing this right. I am trying to get a CVS commits list to accept mails from our CVS domain, using the following regexp: [EMAIL PROTECTED]@cvs\.ailab.\.ch$ However, this is not matching, I still have to moder

Re: [Mailman-Users] regular expressions/wildcards in remove_members?

2004-08-25 Thread Adam Steer
Thanks! My Python is sadly lacking, I'm afraid. I was able to use the method below to search for a string in the address and remove it. Reckon it's worth adding to the FAQ? Cheers Adam. -- Adam Steer Web publishing officer Australian Library and Information Association [EMAIL PROTECTED] http://

Re: [Mailman-Users] regular expressions/wildcards in remove_members?

2004-08-24 Thread Jim Tittsler
On Aug 25, 2004, at 13:22, Adam Steer wrote: tried that already, with abysmal failure. I couldn't generate a regular expression that would work with 'withlist' either - some hand-editing of the condig.db revealed that the address was malformed very badly - $ bin/withlist -l mylist >>> deletions =

Re: [Mailman-Users] regular expressions/wildcards in remove_members?

2004-08-24 Thread Adam Steer
Thanks Jim tried that already, with abysmal failure. I couldn't generate a regular expression that would work with 'withlist' either - some hand-editing of the condig.db revealed that the address was malformed very badly - interpreted about four different ways. Homage to Mailman's valiant attempts

Re: [Mailman-Users] regular expressions/wildcards in remove_members?

2004-08-24 Thread Jim Tittsler
On Aug 24, 2004, at 15:21, Adam Steer wrote: I'm wondering if it is possible to use regular expressions in 'remove_members'. I have a subscriber who has a curly quote in their subscribed address - which has thrown the web membership management interface for the relevant list off the planet, and I h

[Mailman-Users] regular expressions/wildcards in remove_members?

2004-08-23 Thread Adam Steer
Hi All I'm wondering if it is possible to use regular expressions in 'remove_members'. I have a subscriber who has a curly quote in their subscribed address - which has thrown the web membership management interface for the relevant list off the planet, and I haven't been able to work around it an

Re: [Mailman-Users] Regular expressions/whitelists

2004-06-01 Thread Richard Barrett
Assuming you are using MM 2.1.x I think you may have missed this in the help descriptions of the Sender Filters Privacy options fields: start the line with a ^ character to designate a regular expression match I would quess you want to say: [EMAIL PROTECTED]@(.+\.|)duke\.edu$ in the accept_

[Mailman-Users] Regular expressions/whitelists

2004-06-01 Thread Robert G. Brown
Dear Mailman users (and hopefully administrators and/or programmers), We have some campus lists that we'd like to leave open to members and everybody with addresses such as (in regexp form) [EMAIL PROTECTED] but cause all postings from non-duke.edu addresses to be held for the moderator. I ca

Re: [Mailman-Users] Regular Expressions

2002-02-25 Thread Mike Noyes
At 2002-02-25 17:01 -0800, Marc MERLIN wrote: >Are you talking about the python version on lists.sourceforge.net? >Because if so: >usw-sf-list1:~# python -V >Python 2.1.1 Marc, Yes. Thanks for the information. :-) I believe this is a valid list manager question. That's why I asked here instead

Re: [Mailman-Users] Regular Expressions

2002-02-25 Thread Marc MERLIN
On Fri, Feb 22, 2002 at 07:47:31AM -0800, Mike Noyes wrote: > Marc MERLIN knows which version of Python runs on the SF list server. I > hope he is reading this thread, so he can enlighten us. Already done, but please, if you need sf.net support, submit a support request on the sf.net web s

Re: [Mailman-Users] Regular Expressions

2002-02-25 Thread Marc MERLIN
On Thu, Feb 21, 2002 at 04:38:56PM -0800, Mike Noyes wrote: > John, > Thanks for responding. The Mailman version is 2.0.5 patched by Marc MERLIN > on SourceForge. The Python version is 1.5. Are you talking about the python version on lists.sourceforge.net? Because if so: usw-sf-list1:~# python

Re: [Mailman-Users] Regular Expressions

2002-02-22 Thread Mike Noyes
At 2002-02-21 17:05 -0800, John W Baxter wrote: >At 16:38 -0800 2/21/2002, Mike Noyes wrote: > >Thanks for responding. The Mailman version is 2.0.5 patched by Marc > >MERLIN on SourceForge. The Python version is 1.5. > > > >I'd like to use the (?!...) negative lookahead assertion, but I'm not > >h

Re: [Mailman-Users] Regular Expressions

2002-02-21 Thread John W Baxter
At 16:38 -0800 2/21/2002, Mike Noyes wrote: >Thanks for responding. The Mailman version is 2.0.5 patched by Marc MERLIN >on SourceForge. The Python version is 1.5. > >I'd like to use the (?!...) negative lookahead assertion, but I'm not >having much luck. :-( That version of Python is too old for

Re: [Mailman-Users] Regular Expressions

2002-02-21 Thread Mike Noyes
At 2002-02-21 16:06 -0800, John W Baxter wrote: >At 10:23 -0800 2/21/2002, Mike Noyes wrote: > >It appears that the Python re module is used. Does this mean we can > >use the Python re module extensions in "Hold posts"? > > > >ref. > >http://www.python.org/doc/current/lib/re-syntax.html > >http://

Re: [Mailman-Users] Regular Expressions

2002-02-21 Thread John W Baxter
At 10:23 -0800 2/21/2002, Mike Noyes wrote: >It appears that the Python re module is used. Does this mean we can use the >Python re module extensions in "Hold posts"? > >ref. >http://www.python.org/doc/current/lib/re-syntax.html >http://py-howto.sourceforge.net/regex/regex.html You ought to be ab

Re: [Mailman-Users] Regular Expressions

2002-02-21 Thread Mike Noyes
At 2002-02-20 06:34 -0800, Mike Noyes wrote: >What type of regexp does Mailman use in Privacy Options - Hold posts? I think I found the answer after digging through the code. It appears that the Python re module is used. Does this mean we can use the Python re module extensions in "Hold posts"?

[Mailman-Users] Regular Expressions

2002-02-20 Thread Mike Noyes
What type of regexp does Mailman use in Privacy Options - Hold posts? BRE POSIX ERE POSIX BRE GNU ERE GNU Perl Python -- Mike Noyes <[EMAIL PROTECTED]> http://sourceforge.net/users/mhnoyes/ http://leaf.sourceforge.net/content.php?menu=1000&page_id=4 --