------------------------------------------------------------
revno: 1363
fixes bug: https://launchpad.net/bugs/1068837
committer: Mark Sapiro <msap...@value.net>
branch nick: 2.1
timestamp: Sun 2012-10-21 13:32:18 -0700
message:
  IncomingRunner now logs rejected messages to the vette log.
modified:
  Mailman/Queue/IncomingRunner.py
  NEWS


--
lp:mailman/2.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/Queue/IncomingRunner.py'
--- Mailman/Queue/IncomingRunner.py	2005-08-27 01:40:17 +0000
+++ Mailman/Queue/IncomingRunner.py	2012-10-21 20:32:18 +0000
@@ -165,6 +165,13 @@
                 # longer needs to be queued.
                 return 0
             except Errors.RejectMessage, e:
+                # Log this.
+                syslog('vette', """Message rejected, msgid: %s
+        list: %s,
+        handler: %s,
+        reason: %s""",
+                       msg.get('message-id', 'n/a'),
+                       mlist.real_name, handler, e.notice())
                 mlist.BounceMessage(msg, msgdata, e)
                 return 0
             except:

=== modified file 'NEWS'
--- NEWS	2012-10-09 03:27:50 +0000
+++ NEWS	2012-10-21 20:32:18 +0000
@@ -7,6 +7,11 @@
 
 2.1.16 (xx-xxx-xxxx)
 
+  New Features
+
+    - IncomingRunner now logs rejected messages to the vette log.
+      (LP: 1068837)
+
   i18n
 
     - Corrected typo in templates/it/private.html.

_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to