diff options
| -rw-r--r-- | src/mailman/docs/NEWS.rst | 2 | ||||
| -rw-r--r-- | src/mailman/email/message.py | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/mailman/docs/NEWS.rst b/src/mailman/docs/NEWS.rst index 1841f8fb7..093c9bd0e 100644 --- a/src/mailman/docs/NEWS.rst +++ b/src/mailman/docs/NEWS.rst @@ -97,8 +97,6 @@ Bugs (Closes: #283) * Remove the digest mbox files after the digests are sent. Given by Aurélien Bompard. (Closes: #259) - * Messages sent to the list's moderators now include the actual recipient - addresses. Given by Tom Briles. (Closes: #68) * Transmit the moderation reason and expose it in the REST API as the ``reason`` attribute. Given by Aurélien Bompard. * Don't return a 500 error from the REST API when trying to handle a held diff --git a/src/mailman/email/message.py b/src/mailman/email/message.py index da2ce837f..307afbc7b 100644 --- a/src/mailman/email/message.py +++ b/src/mailman/email/message.py @@ -133,7 +133,7 @@ class UserNotification(Message): self['To'] = recipients self.recipients = set([recipients]) - def send(self, mlist, *, add_precedence=True, to_moderators=False, **_kws): + def send(self, mlist, *, add_precedence=True, **_kws): """Sends the message by enqueuing it to the 'virgin' queue. This is used for all internally crafted messages. @@ -143,9 +143,6 @@ class UserNotification(Message): :param add_precedence: Flag indicating whether a `Precedence: bulk` header should be added to the message or not. :type add_precedence: bool - :param to_moderators: Flag indicating whether the message should be - sent to the list's moderators instead of the list's membership. - :type to_moderators: bool This function also accepts arbitrary keyword arguments. The key/value pairs for **kws is added to the metadata dictionary associated with @@ -163,12 +160,6 @@ class UserNotification(Message): # don't override an existing Precedence: header. if 'precedence' not in self and add_precedence: self['Precedence'] = 'bulk' - if to_moderators: - self.recipients = set( - member.address.email - for member in mlist.moderators.members - if member.delivery_status is DeliveryStatus.enabled) - self['To'] = COMMASPACE.join(self.recipients) self._enqueue(mlist, **_kws) def _enqueue(self, mlist, **_kws): |
