[Pkg-mailman-hackers] Pkg-mailman commit - rev 648 - in trunk/debian: . contrib

Thijs Kinkhorst thijs at alioth.debian.org
Sat Feb 20 13:59:58 UTC 2010


Author: thijs
Date: 2010-02-20 13:59:57 +0000 (Sat, 20 Feb 2010)
New Revision: 648

Modified:
   trunk/debian/changelog
   trunk/debian/contrib/postfix-to-mailman.py
Log:
postfix-to-mailman.py: check for list existence before stripping off
administrative suffixes, making it also work for mailing list names
ending in e.g. -admin. Thanks Axel Beckert for the patch!
(Closes: #570548)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2010-01-03 14:47:59 UTC (rev 647)
+++ trunk/debian/changelog	2010-02-20 13:59:57 UTC (rev 648)
@@ -1,3 +1,12 @@
+mailman (1:2.1.13-2) UNRELEASED; urgency=low
+
+  * postfix-to-mailman.py: check for list existence before stripping off
+    administrative suffixes, making it also work for mailing list names
+    ending in e.g. -admin. Thanks Axel Beckert for the patch!
+    (Closes: #570548)
+
+ -- Thijs Kinkhorst <thijs at debian.org>  Sat, 20 Feb 2010 14:58:26 +0100
+
 mailman (1:2.1.13-1) unstable; urgency=low
 
   * New upstream release. Patches incorporated:

Modified: trunk/debian/contrib/postfix-to-mailman.py
===================================================================
--- trunk/debian/contrib/postfix-to-mailman.py	2010-01-03 14:47:59 UTC (rev 647)
+++ trunk/debian/contrib/postfix-to-mailman.py	2010-02-20 13:59:57 UTC (rev 648)
@@ -121,6 +121,14 @@
     # Assume normal posting to a mailing list
     mlist, func = local, 'post'
 
+    # Let Mailman decide if a list exists.
+    from Mailman.Utils import list_exists
+
+    if list_exists(mlist):
+        mm_pgm = os.path.join(paths.prefix, 'mail', 'mailman')
+        os.execv(mm_pgm, (mm_pgm, func, mlist))
+        # NOT REACHED
+
     # Check for control extension on local part
     for ext in ('-admin',
                 '-owner',
@@ -137,8 +145,6 @@
             func  = ext[1:]
             break
 
-    # Let Mailman decide if a list exists.
-    from Mailman.Utils import list_exists
     if list_exists(mlist):
         mm_pgm = os.path.join(paths.prefix, 'mail', 'mailman')
         os.execv(mm_pgm, (mm_pgm, func, mlist))




More information about the Pkg-mailman-hackers mailing list