[Mailman-Users] Possible bug in 1.0b11

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Fri Apr 16 04:50:31 CEST 1999


>>>>> "TG" == Terry Grace <tgrace at tgrace.com> writes:

    TG> I think there is a bug in b11 when a user elects NOT to
    TG> receive copies of posts.

...and delivery to the user is disabled (and the user is the sender of 
the message).  Here's the patch I'm going to check in.

-Barry

Index: MailList.py
===================================================================
RCS file: /projects/cvsroot/mailman/Mailman/MailList.py,v
retrieving revision 1.119
diff -c -r1.119 MailList.py
*** MailList.py	1999/04/16 02:31:22	1.119
--- MailList.py	1999/04/16 02:46:51
***************
*** 1232,1238 ****
              if not self.GetUserOption(m, mm_cfg.DisableDelivery):
                  recipients.append(m)
  	if dont_send_to_sender:
!             recipients.remove(self.GetUserSubscribedAddress(sender))
          self.LogMsg("post", "post to %s from %s size=%d",
                      self._internal_name, msg.GetSender(), len(msg.body))
  	self.DeliverToList(msg, recipients, 
--- 1232,1244 ----
              if not self.GetUserOption(m, mm_cfg.DisableDelivery):
                  recipients.append(m)
  	if dont_send_to_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, 




More information about the Mailman-Users mailing list