summaryrefslogtreecommitdiff
path: root/Mailman/Message.py
diff options
context:
space:
mode:
authorbwarsaw2002-05-22 02:41:06 +0000
committerbwarsaw2002-05-22 02:41:06 +0000
commitefc2075896481796124958d370f9dfd3fdcb115f (patch)
treea28ebcb176b65efc925d3f7dd5af4ec1cfb60ddb /Mailman/Message.py
parent91759d44e44b9438db9bd77d78cb50dbceac0146 (diff)
downloadmailman-efc2075896481796124958d370f9dfd3fdcb115f.tar.gz
mailman-efc2075896481796124958d370f9dfd3fdcb115f.tar.zst
mailman-efc2075896481796124958d370f9dfd3fdcb115f.zip
Diffstat (limited to 'Mailman/Message.py')
-rw-r--r--Mailman/Message.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Message.py b/Mailman/Message.py
index 78f2dfad5..3292106b5 100644
--- a/Mailman/Message.py
+++ b/Mailman/Message.py
@@ -181,6 +181,11 @@ class UserNotification(Message):
# Ditto for Date: which is required by RFC 2822
if not self.has_key('date'):
self['Date'] = email.Utils.formatdate(localtime=1)
+ # UserNotifications are typically for admin messages, and for messages
+ # other than list explosions. Send these out as Precedence: bulk, but
+ # don't override an existing Precedence: header.
+ if not self.has_key('precedence'):
+ self['Precedence'] = 'bulk'
# Not imported at module scope to avoid import loop
from Mailman.Queue.sbcache import get_switchboard
virginq = get_switchboard(mm_cfg.VIRGINQUEUE_DIR)