Re: [Mailman-Users] regexp help

2009-11-02 Thread Mark Sapiro
>I just looked at your original posting (using Outlook) and line 3 is >not indented, but rather continuous from line 2, and the other indents >are in columns 5 and 9 (not 4 and 8). I shall try viewing it with other >mail clients, just for kicks. Right - column 5 IS indented 4 spaces from >column 1

Re: [Mailman-Users] regexp help

2009-11-02 Thread Savoy, Jim
>Depending on the options set in vi, it can do horrible things to indentation when you paste things in :( I just looked at your original posting (using Outlook) and line 3 is not indented, but rather continuous from line 2, and the other indents are in columns 5 and 9 (not 4 and 8). I shall try vi

Re: [Mailman-Users] regexp help

2009-11-02 Thread Mark Sapiro
Savoy, Jim wrote: > >>You used some kind of word processor to create foo.py that concatenated >lines 2 and 3 into a single line. Your Foo.py file must be just like >my original example with lines 1, 2 and 3 at the left margin, lines 4 >and 6 indented 4 spaces and lines 5, 7, 8 and 9 indented 8 spac

Re: [Mailman-Users] regexp help

2009-11-02 Thread Savoy, Jim
Mark Sapiro wrote: >You used some kind of word processor to create foo.py that concatenated lines 2 and 3 into a single line. Your Foo.py file must be just like my original example with lines 1, 2 and 3 at the left margin, lines 4 and 6 indented 4 spaces and lines 5, 7, 8 and 9 indented 8 spaces.

Re: [Mailman-Users] regexp help

2009-11-02 Thread Mark Sapiro
Savoy, Jim wrote: >I also just noticed that the shunt queue started to fill up with >messages >for other lists as well, so I quickly removed the line I had inserted >into >Defaults.py, stopped/started the Mailman processes, and successfully >unshunted >everything. I was hoping the code would only

Re: [Mailman-Users] regexp help

2009-11-02 Thread Mark Sapiro
Savoy, Jim wrote: >>Mark Sapiro wrote: > >>What you need is a custom handler. See the FAQ at > for how to install one. > >Thank you. Done. > >>In your case, the handler is very simple - just 9 lines. > >>import re >>cre = re.compile('unique\.name', re.IGNORECASE) >>def

Re: [Mailman-Users] regexp help

2009-11-02 Thread Geoff Shang
On Mon, 2 Nov 2009, Savoy, Jim wrote: I also just noticed that all of the other handlers have an accompanying .pyc file, but my Foo.py does not. Perhaps that 'c' stands for "compiled" It does. and I was supposed to compile the code first? (probably seems obvious to someone familiar with Mail

Re: [Mailman-Users] regexp help

2009-11-02 Thread Savoy, Jim
I also just noticed that all of the other handlers have an accompanying .pyc file, but my Foo.py does not. Perhaps that 'c' stands for "compiled" and I was supposed to compile the code first? (probably seems obvious to someone familiar with Mailman/Python). -

Re: [Mailman-Users] regexp help

2009-11-02 Thread Savoy, Jim
I also just noticed that the shunt queue started to fill up with messages for other lists as well, so I quickly removed the line I had inserted into Defaults.py, stopped/started the Mailman processes, and successfully unshunted everything. I was hoping the code would only affect the one list I am m

Re: [Mailman-Users] regexp help

2009-11-02 Thread Savoy, Jim
>Mark Sapiro wrote: >What you need is a custom handler. See the FAQ at for how to install one. Thank you. Done. >In your case, the handler is very simple - just 9 lines. >import re >cre = re.compile('unique\.name', re.IGNORECASE) >def process(mlist, msg, msgdata):

Re: [Mailman-Users] Couldn't change newlist.txt for tr version

2009-11-02 Thread Mark Sapiro
liste yoneticisi wrote: > >I tried to make a global change for newlist welcome message. > >For English version, I changed the file; >/cwis/htdocs/mailman/templates/en/newlist.txt > >and it worked. ie the changes effected in the newlist information file. > >But the similar changes didn't affected fo

[Mailman-Users] Couldn't change newlist.txt for tr version

2009-11-02 Thread liste yoneticisi
Hi; I tried to make a global change for newlist welcome message. For English version, I changed the file; /cwis/htdocs/mailman/templates/en/newlist.txt and it worked. ie the changes effected in the newlist information file. But the similar changes didn't affected for /cwis/htdocs/mailman/templa