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

Bernd S. Brentrup bsb@haydn.debian.org
Thu, 15 Apr 2004 13:24:31 -0600


Author: bsb
Date: 2004-04-15 13:24:29 -0600 (Thu, 15 Apr 2004)
New Revision: 60

Modified:
   trunk/debian/changelog
   trunk/debian/contrib/postfix-to-mailman.py
Log:
Fix ',' obscuring 'Illegal invocation' reporting.


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2004-04-15 14:33:51 UTC (rev 59)
+++ trunk/debian/changelog	2004-04-15 19:24:29 UTC (rev 60)
@@ -9,8 +9,10 @@
     <aba@not.so.argh.org>, (by GCS, closes: #243209).
   * Ask for the language used by Mailman from the enabled languages
     (by GCS, closes: #224319).
+  * postfix-to-mailman.py: Fix ',' obscuring illegal invocations, reported
+    by martin f krafft <madduck@debian.org> (bsb, closes: #243908)
 
- -- Siggy Brentrup <bsb@debian.org>  Sat, 10 Apr 2004 12:46:59 +0200
+ -- Siggy Brentrup <bsb@debian.org>  Thu, 15 Apr 2004 21:19:39 +0200
 
 mailman (2.1.4-3) unstable; urgency=medium
 

Modified: trunk/debian/contrib/postfix-to-mailman.py
===================================================================
--- trunk/debian/contrib/postfix-to-mailman.py	2004-04-15 14:33:51 UTC (rev 59)
+++ trunk/debian/contrib/postfix-to-mailman.py	2004-04-15 19:24:29 UTC (rev 60)
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 
-# $URL: svn+ssh://svn/home/svn/adm/trunk/mailman/postfix-to-mailman.py $
-# $Id: postfix-to-mailman.py 17 2004-03-29 17:06:17Z bsb $
+# $URL: svn+bsb://svn.winnegan.de/svn/adm/trunk/mailman/postfix-to-mailman.py $
+# $Id: postfix-to-mailman.py 38 2004-04-15 19:11:32Z bsb $
 #
 # Interface mailman to a postfix with a mailman transport. Does not require
 # the creation of _any_ aliases to connect lists to your mail system.
@@ -98,8 +98,12 @@
     except:
         # This might happen if we're not using Postfix or
         # /etc/postfix/master.cf is badly misconfigured
-        sys.stderr.write('Illegal invocation: %r\n',
-                         ' '.join(sys.argv))
+        sys.stderr.write('Illegal invocation: %r\n'
+                         % ' '.join(sys.argv))
+        if len(sys.argv) > 3:
+            sys.stderr.write('Did you forget to set '
+                             'mailman_destination_recipient_limit=1 '
+                             'in main.cf?')
         sys.exit(EX_USAGE)
 
     # Redirect required addresses to