summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-03-05 04:49:09 +0000
committerbwarsaw2002-03-05 04:49:09 +0000
commite9b78cfd715a2897aa065fb43fcbbc95cd05f17d (patch)
treebaf90dd9ba7cd538458faeeed07b736c7d3bd969
parentffb88aca12806f1a18bc35bebc1f95419f121e91 (diff)
downloadmailman-e9b78cfd715a2897aa065fb43fcbbc95cd05f17d.tar.gz
mailman-e9b78cfd715a2897aa065fb43fcbbc95cd05f17d.tar.zst
mailman-e9b78cfd715a2897aa065fb43fcbbc95cd05f17d.zip
__handlepost(): Change the moderation header from X-Moderated: to
X-Mailman-Approved-At: and remove the address of the approver (it's always going to be some alias for the list's moderators or admins).
-rw-r--r--Mailman/ListAdmin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Mailman/ListAdmin.py b/Mailman/ListAdmin.py
index 79d98e2eb..0fad19aaf 100644
--- a/Mailman/ListAdmin.py
+++ b/Mailman/ListAdmin.py
@@ -267,8 +267,7 @@ class ListAdmin:
# Queue the file for delivery by qrunner. Trying to deliver the
# message directly here can lead to a huge delay in web
# turnaround. Log the moderation and add a header.
- msg['X-Moderated'] = '<%s> %s' % (self.GetOwnerEmail(),
- email.Utils.formatdate())
+ msg['X-Mailman-Approved-At'] = email.Utils.formatdate()
syslog('vette', 'held message approved, message-id: %s',
msg.get('message-id', 'n/a'))
# Stick the message back in the incoming queue for further