aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Queue
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2012-10-21 13:32:18 -0700
committerMark Sapiro <msapiro@value.net>2012-10-21 13:32:18 -0700
commita190bc8d3d22a616181cb86a864e00e2a7f7ec61 (patch)
tree19b84ef62b52b667a67a5ac32ea3b381de53d5a9 /Mailman/Queue
parent47b1ade422b0bb61db9a2a45187b120df0aafcc7 (diff)
downloadmailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.tar.gz
mailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.tar.xz
mailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.zip
IncomingRunner now logs rejected messages to the vette log.
Diffstat (limited to 'Mailman/Queue')
-rw-r--r--Mailman/Queue/IncomingRunner.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Mailman/Queue/IncomingRunner.py b/Mailman/Queue/IncomingRunner.py
index 71d93919..bcc51209 100644
--- a/Mailman/Queue/IncomingRunner.py
+++ b/Mailman/Queue/IncomingRunner.py
@@ -165,6 +165,13 @@ class IncomingRunner(Runner):
# 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: