Debian Bug report logs - #243908
',' in write() obscures 'Illegal invocation' reporting.

version graph

Package: mailman; Maintainer for mailman is Mailman for Debian <[email protected]>; Source for mailman is src:mailman (PTS, buildd, popcon).

Reported by: martin f krafft <[email protected]>

Date: Thu, 15 Apr 2004 14:18:04 UTC

Owned by: [email protected]

Severity: normal

Found in version 2.1.4-3

Fixed in version mailman/2.1.4-4

Done: Siggy Brentrup <[email protected]>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Tollef Fog Heen <[email protected]>:
Bug#243908; Package mailman. (full text, mbox, link).


Acknowledgement sent to martin f krafft <[email protected]>:
New Bug report received and forwarded. Copy sent to Tollef Fog Heen <[email protected]>. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: martin f krafft <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: postfix-to-mailman.py does not work on reinjection
Date: Thu, 15 Apr 2004 16:03:56 +0200
[Message part 1 (text/plain, inline)]
Package: mailman
Version: 2.1.4-3
Severity: normal

For simple lists, postfix-to-mailman.py works out of the box.
However, I with nested lists, the scripts seems to fail at the very
bottom. Postfix will defer the message with the following reason:

  temporary failure. Command output: exceptions.TypeError function
  takes exactly 1 argument (2 given) Line 147

Thus, for now, I have to switch back to using the alias method.

Thanks for fixing this.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (600, 'testing'), (98, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.3-1-k7-smp
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=de_DE.ISO-8859-15

Versions of packages mailman depends on:
ii  apache [httpd]              1.3.29.0.2-4 Versatile, high-performance HTTP s
ii  cron                        3.0pl1-72    management of regular background p
ii  debconf                     1.4.21       Debian configuration management sy
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  logrotate                   3.5.9-8      Log rotation utility
ii  postfix [mail-transport-age 2.0.19-1     A high-performance mail transport
ii  pwgen                       2.03-1       Automatic Password generation
ii  python                      2.3.3-7      An interactive high-level object-o
ii  ucf                         1.00         Update Configuration File: preserv

-- 
Please do not CC me when replying to lists; I read them!
 
 .''`.     martin f. krafft <[email protected]>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Tollef Fog Heen <[email protected]>:
Bug#243908; Package mailman. (full text, mbox, link).


Acknowledgement sent to Siggy Brentrup <[email protected]>:
Extra info received and forwarded to list. Copy sent to Tollef Fog Heen <[email protected]>. (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Siggy Brentrup <[email protected]>
To: martin f krafft <[email protected]>, [email protected]
Subject: Re: Bug#243908: postfix-to-mailman.py does not work on reinjection
Date: Thu, 15 Apr 2004 19:19:50 +0200
[Message part 1 (text/plain, inline)]
On Thu, Apr 15, 2004 at 04:03:56PM +0200, martin f krafft wrote:
> Package: mailman
> Version: 2.1.4-3
> Severity: normal

> For simple lists, postfix-to-mailman.py works out of the box.
> However, I with nested lists, the scripts seems to fail at the very
> bottom.

What do you mean by 'nested lists'?  I tested with an 'inner' list
subscribed to an 'outer' one which has umbrella_list set.  As
expected, mail to [email protected] shows up in outer & inner
archives as well as in inner subscriber mailboxes.

> Postfix will defer the message with the following reason:
>   temporary failure. Command output: exceptions.TypeError function
>   takes exactly 1 argument (2 given) Line 147

Line 147 is the call to main(), but then the message makes no sense.

> Thus, for now, I have to switch back to using the alias method.
> 
> Thanks for fixing this.

I'd be happy to do so, but still don't see what's going wrong.
Can you please temporarily apply the following patch:

Index: debian/contrib/postfix-to-mailman.py
===================================================================
--- debian/contrib/postfix-to-mailman.py	(revision 58)
+++ debian/contrib/postfix-to-mailman.py	(working copy)
@@ -143,12 +143,12 @@
 
 
 if __name__ == '__main__':
+    import traceback
     try:
         main()
     except SystemExit, argument:
         sys.exit(argument)
     except Exception:
-        xt, xv, tb = sys.exc_info()
-        sys.stderr.write("%s %s\n" % (xt, xv))
-        sys.stderr.write("Line %d\n" % (tb.tb_lineno))
+        print >>sys.stderr, sys.argv
+        traceback.print_exc()
         sys.exit(EX_TEMPFAIL) # Soft failure, try again later.

Hopefully it will provide sufficient information for tracking
down the problem.

Thanks for reporting
 . Siggy
[signature.asc (application/pgp-signature, inline)]

Reply sent to martin f krafft <[email protected]>:
You have taken responsibility. (full text, mbox, link).


Notification sent to martin f krafft <[email protected]>:
Bug acknowledged by developer. (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: martin f krafft <[email protected]>
To: Siggy Brentrup <[email protected]>
Cc: [email protected]
Subject: Re: Bug#243908: postfix-to-mailman.py does not work on reinjection
Date: Thu, 15 Apr 2004 20:45:12 +0200
[Message part 1 (text/plain, inline)]
also sprach Siggy Brentrup <[email protected]> [2004.04.15.1919 +0200]:
> What do you mean by 'nested lists'?  I tested with an 'inner' list
> subscribed to an 'outer' one which has umbrella_list set.  As
> expected, mail to [email protected] shows up in outer & inner
> archives as well as in inner subscriber mailboxes.

Yes, that's what I mean.

> > Postfix will defer the message with the following reason:
> > temporary failure. Command output: exceptions.TypeError function
> > takes exactly 1 argument (2 given) Line 147
> 
> Line 147 is the call to main(), but then the message makes no
> sense.

I know. But I verified it's there, by changing "Line" to "Something"
in the code and checking the logs --> "Something 147" had replaced
Line 147.

> I'd be happy to do so, but still don't see what's going wrong.
> Can you please temporarily apply the following patch:

with the traceback it starts to make sense:

Apr 15 20:28:18 gaia postfix/pipe[28313]: 420171C4F53F:
to=<[email protected]>, relay=mailman, delay=0, status=deferred (temporary
failure. Command output: ['/var/lib/mailman/bin/postfix-to-mailman.py',
'lists.ailab.ch', 'alumni', 'guests', 'people'] Traceback (most recent call
last):   File "/var/lib/mailman/bin/postfix-to-mailman.py", line 148, in ?
main()   File "/var/lib/mailman/bin/postfix-to-mailman.py", line 102, in main '
'.join(sys.argv)) TypeError: function takes exactly 1 argument (2 given) )

and the solution:

  mailman_destination_recipient_limit = 1

was forgotten.

Here, to cater for stupid lusers like me:

==============================================================================
--- postfix-to-mailman.py.orig  Thu Apr 15 20:32:30 2004
+++ postfix-to-mailman.py       Thu Apr 15 20:44:08 2004
@@ -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))
+        if (len(sys.argv) != 3):
+          sys.stderr.write('Invalid number of arguments. Did you forget '
+            + 'to set "mailman_destination_recipient_limit = 1"?\n')
+        else:
+          sys.stderr.write('Illegal invocation: %r\n',
+                           ' '.join(sys.argv))
         sys.exit(EX_USAGE)
 
     # Redirect required addresses to 
==============================================================================

-- 
Please do not CC me when replying to lists; I read them!
 
 .''`.     martin f. krafft <[email protected]>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Tollef Fog Heen <[email protected]>:
Bug#243908; Package mailman. (full text, mbox, link).


Acknowledgement sent to Siggy Brentrup <[email protected]>:
Extra info received and forwarded to list. Copy sent to Tollef Fog Heen <[email protected]>. (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

From: Siggy Brentrup <[email protected]>
To: martin f krafft <[email protected]>, [email protected], [email protected]
Subject: Re: Bug#243908: postfix-to-mailman.py does not work on reinjection
Date: Thu, 15 Apr 2004 21:33:53 +0200
[Message part 1 (text/plain, inline)]
package mailman
reopen 243908
retitle 243908 ',' in write() obscures 'Illegal invocation' reporting.
tags 243908 +pending
owner 243908 [email protected]
thanks


Hi Martin,

at least you caused this moron to find a ',' that has always been meant
to be a '%' :-).

Thanks again.
 . Siggy
[signature.asc (application/pgp-signature, inline)]

Bug reopened, originator not changed. Request was from Siggy Brentrup <[email protected]> to [email protected]. (full text, mbox, link).


Changed Bug title. Request was from Siggy Brentrup <[email protected]> to [email protected]. (full text, mbox, link).


Tags added: pending Request was from Siggy Brentrup <[email protected]> to [email protected]. (full text, mbox, link).


Owner recorded as [email protected]. Request was from Siggy Brentrup <[email protected]> to [email protected]. (full text, mbox, link).


Information forwarded to [email protected], Tollef Fog Heen <[email protected]>, [email protected]:
Bug#243908; Package mailman. (full text, mbox, link).


Acknowledgement sent to martin f krafft <[email protected]>:
Extra info received and forwarded to list. Copy sent to Tollef Fog Heen <[email protected]>, [email protected]. (full text, mbox, link).


Message #33 received at [email protected] (full text, mbox, reply):

From: martin f krafft <[email protected]>
To: Siggy Brentrup <[email protected]>
Cc: [email protected]
Subject: Re: Bug#243908: postfix-to-mailman.py does not work on reinjection
Date: Thu, 15 Apr 2004 23:28:31 +0200
[Message part 1 (text/plain, inline)]
also sprach Siggy Brentrup <[email protected]> [2004.04.15.2133 +0200]:
> at least you caused this moron to find a ',' that has always been
> meant to be a '%' :-).

I was wondering about that. But then I forgot to mention it...

Anyway, glad this is solved...

-- 
Please do not CC me when replying to lists; I read them!
 
 .''`.     martin f. krafft <[email protected]>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
[signature.asc (application/pgp-signature, inline)]

Reply sent to Siggy Brentrup <[email protected]>:
You have taken responsibility. (full text, mbox, link).


Notification sent to martin f krafft <[email protected]>:
Bug acknowledged by developer. (full text, mbox, link).


Message #38 received at [email protected] (full text, mbox, reply):

From: Siggy Brentrup <[email protected]>
To: [email protected]
Subject: Bug#243908: fixed in mailman 2.1.4-4
Date: Fri, 16 Apr 2004 13:17:21 -0400
Source: mailman
Source-Version: 2.1.4-4

We believe that the bug you reported is fixed in the latest version of
mailman, which is due to be installed in the Debian FTP archive:

mailman_2.1.4-4.diff.gz
  to pool/main/m/mailman/mailman_2.1.4-4.diff.gz
mailman_2.1.4-4.dsc
  to pool/main/m/mailman/mailman_2.1.4-4.dsc
mailman_2.1.4-4_i386.deb
  to pool/main/m/mailman/mailman_2.1.4-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Siggy Brentrup <[email protected]> (supplier of updated mailman package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 16 Apr 2004 18:40:38 +0200
Source: mailman
Binary: mailman
Architecture: source i386
Version: 2.1.4-4
Distribution: unstable
Urgency: medium
Maintainer: Tollef Fog Heen <[email protected]>
Changed-By: Siggy Brentrup <[email protected]>
Description: 
 mailman    - Powerful, web-based mailing list manager
Closes: 224319 235667 235835 242945 243209 243908
Changes: 
 mailman (2.1.4-4) unstable; urgency=medium
 .
   * Urgency medium because RC bugs are fixed.
   * Fix README.Debian concerning URLs (bsb, closes: #235835).
   * Add fix for missing installation of Danish templates (by GCS)
   * config: don't try to list_lists when upgrading from pre 2.1
     (bsb, closes: #242945).
   * Fix Woody FTBFS, reported and solution provided by Andreas Barth
     <[email protected]>, (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 <[email protected]> (bsb, closes: #243908)
   * Update SpamAssassin handler to the most recent version can be found,
     and document it in README.Debian (by GCS, closes: #235667).
Files: 
 fabb8fa91fcc84130e1d050a1b5a34a0 639 mail optional mailman_2.1.4-4.dsc
 4287aac715872ae64ceaf1296799bb9c 56714 mail optional mailman_2.1.4-4.diff.gz
 7a851b85a104ee9d7cacd05767b1cd51 6293426 mail optional mailman_2.1.4-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgA2Q94B/SGO8KQcRAsw6AKCXVrvJk3eFfeiL+lwfOOePmo02YACeKNr3
Ox8iHb3D6Sbhmi6pRWHrHd0=
=BeiA
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 15:46:19 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.