Your message dated Wed, 07 Oct 2009 13:32:04 +0000
with message-id <[email protected]>
and subject line Bug#345998: fixed in enemies-of-carlotta 1.2.6-2
has caused the Debian Bug report #345998,
regarding enemies-of-carlotta: Use standard exit codes in --incoming mode
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
345998: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345998
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: enemies-of-carlotta
Version: 1.2.1-1
Severity: wishlist
Tags: patch

Attached patch will use a "short" error reporting in --incoming mode,
and use appropriate exit codes (from the os module) for common errors.
When used as a postfix pipe transport, EoC used to report exceptions
wrapped into a single line; thus causing a really ugly error message.

by using appropriate exit codes in sys.exit(), postfix (as does
procmail) understands what the type of error is, and will produce a
nicer error message; by printing just a tiny bit of additional information
this hopefully makes much more sense to the user:
  <[email protected]>: user unknown. Command output: Unknown list
instead of
  <[email protected]>: Command died with status 1:
    "/usr/bin/enemies-of-carlotta". Command output: Traceback (most recent call
    last):   File "/usr/bin/enemies-of-carlotta", line 16, in ?
    eoc.main(sys.argv[1:])   File "/usr/share/enemies-of-carlotta/eoc.py", line
    1645, in main     mlm.incoming_message(skip_prefix, domain, moderate, post)
    File "/usr/share/enemies-of-carlotta/eoc.py", line 375, in incoming_message
    domain)   File "/usr/share/enemies-of-carlotta/eoc.py", line 313, in
    parse_recipient_address     listname, parts = ap.parse(address)   File
    "/usr/share/enemies-of-carlotta/eoc.py", line 181, in parse     raise
    UnknownList(address) eoc.UnknownList: [email protected] is not a known
    mailing list

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.14
Locale: lang=de_de.ut...@euro, lc_ctype=de_de.ut...@euro (charmap=UTF-8)

Versions of packages enemies-of-carlotta depends on:
ii  procmail                      3.22-11    Versatile e-mail processor
ii  python                        2.3.5-3    An interactive high-level object-o

enemies-of-carlotta recommends no packages.

-- no debconf information
--- /usr/share/enemies-of-carlotta/eoc.py       2005-12-22 01:05:00.000000000 
+0100
+++ eoc.py      2006-01-04 19:57:00.000000000 +0100
@@ -1642,7 +1642,17 @@
             debug("Not a mailing list: <%s>" % list_name)
             sys.exit(1)
     elif operation == "--incoming":
-        mlm.incoming_message(skip_prefix, domain, moderate, post)
+        try:
+            mlm.incoming_message(skip_prefix, domain, moderate, post)
+        except BadCommandAddress:
+            sys.stderr.write("Bad command address.\n")
+            sys.exit(os.EX_NOUSER)
+        except BadSignature:
+           sys.stderr.write("Bad signature.\n")
+            sys.exit(os.EX_NOPERM)
+        except UnknownList:
+            sys.stderr.write("Unknown list\n")
+            sys.exit(os.EX_NOUSER)
     elif operation == "--cleaning-woman":
         mlm.cleaning_woman()
     elif operation == "--show-lists":

--- End Message ---
--- Begin Message ---
Source: enemies-of-carlotta
Source-Version: 1.2.6-2

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

enemies-of-carlotta_1.2.6-2.diff.gz
  to pool/main/e/enemies-of-carlotta/enemies-of-carlotta_1.2.6-2.diff.gz
enemies-of-carlotta_1.2.6-2.dsc
  to pool/main/e/enemies-of-carlotta/enemies-of-carlotta_1.2.6-2.dsc
enemies-of-carlotta_1.2.6-2_all.deb
  to pool/main/e/enemies-of-carlotta/enemies-of-carlotta_1.2.6-2_all.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.
Dave Holland <[email protected]> (supplier of updated enemies-of-carlotta 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.8
Date: Wed, 07 Oct 2009 14:21:01 +0100
Source: enemies-of-carlotta
Binary: enemies-of-carlotta
Architecture: source all
Version: 1.2.6-2
Distribution: unstable
Urgency: low
Maintainer: Dave Holland <[email protected]>
Changed-By: Dave Holland <[email protected]>
Description: 
 enemies-of-carlotta - mailing list manager
Closes: 261037 345998 506991 544441
Changes: 
 enemies-of-carlotta (1.2.6-2) unstable; urgency=low
 .
   * New maintainers - Dave Holland and Tollef Fog Heen (closes: #544441)
   * Fixed typo in templates/bounce-warning (closes: #506991)
   * Example cleaning-woman cronjob included (closes: #261037) - thanks
     to Simon Huggins.
   * Return short error messages and standard exit codes in "incoming"
     mode (closes: #345998) - thanks to Erich Schubert.
Checksums-Sha1: 
 75cc721defc3d408b8be83df64cd8aea26085735 1128 enemies-of-carlotta_1.2.6-2.dsc
 d9a767d08c0563efc2bbeb8c7e8c529902ad4752 5418 
enemies-of-carlotta_1.2.6-2.diff.gz
 020769c5864dcf23fa4e8e61f1732454ffbbfcdd 73890 
enemies-of-carlotta_1.2.6-2_all.deb
Checksums-Sha256: 
 90487cdca517a49eedaa885134502105a8aca0614734b9c4494c3a92bf6c06a8 1128 
enemies-of-carlotta_1.2.6-2.dsc
 e9902649aadaf922b917322de6d3af94ad1ed8cbcaa45658869ec46ab46e1b42 5418 
enemies-of-carlotta_1.2.6-2.diff.gz
 33f9c555a0f8a5d4002fc8b153551a8def8ceadfd53901c741ace674b41603e8 73890 
enemies-of-carlotta_1.2.6-2_all.deb
Files: 
 a75583a24f6971ce664cbd71ddac46c3 1128 mail optional 
enemies-of-carlotta_1.2.6-2.dsc
 02d5c4fea795d743729edda6776e4bb5 5418 mail optional 
enemies-of-carlotta_1.2.6-2.diff.gz
 795c50e5e6a99036e68a4f9d86042ee3 73890 mail optional 
enemies-of-carlotta_1.2.6-2_all.deb

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

iEYEARECAAYFAkrMljkACgkQKeFPmTkbOSg+MACeOGXE7aLMwW2nBcAAuUCLxkEF
gKgAmwV7PIN7EsHmdKRz7ug0r2UbsDVJ
=n4Yl
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to