diff options
| -rw-r--r-- | Mailman/MailList.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 40baffe8d..871560b98 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1232,7 +1232,13 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, if not self.GetUserOption(m, mm_cfg.DisableDelivery): recipients.append(m) if dont_send_to_sender: - recipients.remove(self.GetUserSubscribedAddress(sender)) + try: + recipients.remove(self.GetUserSubscribedAddress(sender)) + except ValueError: + # sender does not want to get copies of their own messages + # (not metoo), but delivery to their address is disabled + # (nomail) + pass self.LogMsg("post", "post to %s from %s size=%d", self._internal_name, msg.GetSender(), len(msg.body)) self.DeliverToList(msg, recipients, |
