summaryrefslogtreecommitdiff
path: root/src/mailman/email
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/email')
-rw-r--r--src/mailman/email/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/email/message.py b/src/mailman/email/message.py
index d7bf81055..7f7ee66ed 100644
--- a/src/mailman/email/message.py
+++ b/src/mailman/email/message.py
@@ -178,7 +178,7 @@ class UserNotification(Message):
self['To'] = recipients
self.recipients = set([recipients])
- def send(self, mlist, **_kws):
+ def send(self, mlist, noprecedence=False, **_kws):
"""Sends the message by enqueuing it to the 'virgin' queue.
This is used for all internally crafted messages.
@@ -193,7 +193,7 @@ class UserNotification(Message):
# 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 'precedence' not in self:
+ if 'precedence' not in self or not noprecedence:
self['Precedence'] = 'bulk'
self._enqueue(mlist, **_kws)