aboutsummaryrefslogtreecommitdiffstats
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
parent47b1ade422b0bb61db9a2a45187b120df0aafcc7 (diff)
downloadmailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.tar.gz
mailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.tar.xz
mailman2-a190bc8d3d22a616181cb86a864e00e2a7f7ec61.zip
IncomingRunner now logs rejected messages to the vette log.
-rw-r--r--Mailman/Queue/IncomingRunner.py7
-rw-r--r--NEWS5
2 files changed, 12 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:
diff --git a/NEWS b/NEWS
index 4c21b578..93ed9561 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,11 @@ Here is a history of user visible changes to Mailman.
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.