Re: [Mailman-Users] Hyphenated Lists Stopped Working

2007-09-04 Thread falko
Mark Sapiro wrote:
> Mark Sapiro wrote:
>   
>> The bottom line is there is a bug in MaildirRunner.py. It doesn't work
>> with hyphenated list names as it conflates the last part of the name
>> with the -bounces, -request, etc. suffixes.
>> 
>
>
> The attached MaildirRunner.patch.txt file contains a patch which I
> think will fix this bug. I've tested the revised regexp somewhat and
> it seems to work, but I would appreciate your trying the patch and
> reporting the results.
>
> Make a backup copy of Mailman/Queue/MaildirRunner.py, apply the patch
> and restart Mailman.
>
>   

Sorry it took me so long to reply (the long USA weekend threw me off). I
applied the patch and lists with hyphens now work :). Thank you very
much for the help!

-Andrey


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Hyphenated Lists Stopped Working

2007-09-01 Thread Mark Sapiro
Alan Sill wrote:
>
>> Mark Sapiro wrote:
>>>
>>> The bottom line is there is a bug in MaildirRunner.py. It doesn't  
>>> work
>>> with hyphenated list names as it conflates the last part of the name
>>> with the -bounces, -request, etc. suffixes.
>>
>>
>> The attached MaildirRunner.patch.txt file contains a patch which I
>> think will fix this bug. I've tested the revised regexp somewhat and
>> it seems to work, but I would appreciate your trying the patch and
>> reporting the results.
>>
>> Make a backup copy of Mailman/Queue/MaildirRunner.py, apply the patch
>> and restart Mailman.
>
>Is this bug only present in certain version of Mailman?  I have lists  
>with hyphenated list names that do not exhibit this problem.


The bug is in all Mailman 2.1.x versions but it only appears if you use
maildir delivery to Mailman which is not the default and which very
few sites use.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Hyphenated Lists Stopped Working

2007-09-01 Thread Alan Sill

On Sep 1, 2007, at 5:00 AM, [EMAIL PROTECTED] wrote:

> Mark Sapiro wrote:
>>
>> The bottom line is there is a bug in MaildirRunner.py. It doesn't  
>> work
>> with hyphenated list names as it conflates the last part of the name
>> with the -bounces, -request, etc. suffixes.
>
>
> The attached MaildirRunner.patch.txt file contains a patch which I
> think will fix this bug. I've tested the revised regexp somewhat and
> it seems to work, but I would appreciate your trying the patch and
> reporting the results.
>
> Make a backup copy of Mailman/Queue/MaildirRunner.py, apply the patch
> and restart Mailman.

Is this bug only present in certain version of Mailman?  I have lists  
with hyphenated list names that do not exhibit this problem.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Hyphenated Lists Stopped Working

2007-09-01 Thread Karl Zander
On Fri, 31 Aug 2007 16:10:38 -0700
  Mark Sapiro <[EMAIL PROTECTED]> wrote:

> The bottom line is there is a bug in MaildirRunner.py. 
>It doesn't work
> with hyphenated list names as it conflates the last part 
>of the name
> with the -bounces, -request, etc. suffixes.

hummm...We have not had problems with hyphenated list 
names.  Just about all of our lists have hyphenated names. 
 Currently running 2.1.9, but we did not have problems 
with 2.1.8 or 2.1.7 either.

--Karl
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Hyphenated Lists Stopped Working

2007-09-01 Thread Mark Sapiro
Karl Zander wrote:
>
>hummm...We have not had problems with hyphenated list 
>names.  Just about all of our lists have hyphenated names. 
> Currently running 2.1.9, but we did not have problems 
>with 2.1.8 or 2.1.7 either.


Neither did the OP have problems until he moved lists with hyphenated
names to a Mailman installation using maildir delivery to Mailman as
opposed to the normal piped delivery direct from the MTA.

The problem is in MaildirRunner.py which is "experimental for Mailman
2.1" and not used at most sites.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Hyphenated Lists Stopped Working

2007-08-31 Thread Mark Sapiro
Mark Sapiro wrote:
>
>The bottom line is there is a bug in MaildirRunner.py. It doesn't work
>with hyphenated list names as it conflates the last part of the name
>with the -bounces, -request, etc. suffixes.


The attached MaildirRunner.patch.txt file contains a patch which I
think will fix this bug. I've tested the revised regexp somewhat and
it seems to work, but I would appreciate your trying the patch and
reporting the results.

Make a backup copy of Mailman/Queue/MaildirRunner.py, apply the patch
and restart Mailman.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--- MaildirRunner.py2007-08-03 18:24:55.90625 -0700
+++ MaildirRunnerx.py   2007-08-31 18:17:45.59375 -0700
@@ -1,4 +1,4 @@
-# Copyright (C) 2002 by the Free Software Foundation, Inc.
+# Copyright (C) 2002-2007 by the Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -12,7 +12,8 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 
USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+# USA.
 
 """Maildir pre-queue runner.
 
@@ -66,11 +67,22 @@
 # listname-request@
 lre = re.compile(r"""
  ^# start of string
- (?P[EMAIL PROTECTED]) # listname@ or listname-subq@
+ (?P[EMAIL PROTECTED])# listname@ or listname-subq@ (non-greedy)
  (?:  # non-grouping
-  # dash separator
-   (?P[EMAIL PROTECTED])  # everything up to + or - or @
+   (?P  # any known suffix
+ admin|
+ bounces|
+ confirm|
+ join|
+ leave|
+ owner|
+ request|
+ subscribe|
+ unsubscribe
+   )
  )?   # if it exists
+ [EMAIL PROTECTED] # followed by + or @
  """, re.VERBOSE | re.IGNORECASE)
 
 
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Re: [Mailman-Users] Hyphenated Lists Stopped Working

2007-08-31 Thread Mark Sapiro
Andrey Falko wrote:
>
>Lists with hyphens like, "-", no longer work. Postix has no trouble 
>delivering mail to these lists to the maildir, but the emails simply lie 
>in /var/lib/mailman/qfiles/maildir/cur/ and nothing appears to happen to 
>them..


The files in /var/lib/mailman/qfiles/maildir/cur/ probably have names
ending in '1:X' indicating a MaildirRunner processing error.


>Log files show nothing helpful:
>Aug 31 17:32:08 2007 (14022) 
><[EMAIL PROTECTED]> smtp to 
>hyphen-ated for 1 recips, completed in 0.058 seconds
>Aug 31 17:33:12 2007 (14022) 
><[EMAIL PROTECTED]> smtp to 
>hyphen-ated for 1 recips, completed in 0.040 seconds
>Aug 31 17:33:50 2007 (14022)
>Aug 31 17:33:10 2007 (11581) hyphen-ated: held subscription request from 
>[EMAIL PROTECTED]


There should be messages in Mailman's error log saying 'Message
apparently not for any list: %s' where the %s is replaced with the
name of the /var/lib/mailman/qfiles/maildir/cur/*1:X file.

The bottom line is there is a bug in MaildirRunner.py. It doesn't work
with hyphenated list names as it conflates the last part of the name
with the -bounces, -request, etc. suffixes.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] Hyphenated Lists Stopped Working

2007-08-31 Thread Andrey Falko
Hi everyone,

Here is how I migrated mailman from one server to another:

1) Create all mailings lists on destination server.
2) Copy the following folders to the destination server.
  archives
  data
  lists
  lists-generic
  locks
  logs
  qfiles
  spam
3) Ran fixurl for all lists (probably not relevant).

Lists with hyphens like, "-", no longer work. Postix has no trouble 
delivering mail to these lists to the maildir, but the emails simply lie 
in /var/lib/mailman/qfiles/maildir/cur/ and nothing appears to happen to 
them..

Log files show nothing helpful:
Aug 31 17:32:08 2007 (14022) 
<[EMAIL PROTECTED]> smtp to 
hyphen-ated for 1 recips, completed in 0.058 seconds
Aug 31 17:33:12 2007 (14022) 
<[EMAIL PROTECTED]> smtp to 
hyphen-ated for 1 recips, completed in 0.040 seconds
Aug 31 17:33:50 2007 (14022)
Aug 31 17:33:10 2007 (11581) hyphen-ated: held subscription request from 
[EMAIL PROTECTED]

When a user request is made to add a user to these lists, the 
confirmation email does not get sent to the admin. Postfix does not 
report any delivery problems.

I tried googling this, but found nothing.

Does any one have any suggestions?

Thank you.

Best regards,
Andrey Falko
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp