[Mailman-Users] Copying rejection reason and email to multiplemoderators?

Mark Sapiro mark at msapiro.net
Sat Mar 5 18:04:06 CET 2011


Mark Sapiro wrote:

> To do this automatically, you could modify the code in the
> BounceMessage() method in Mailman/Bouncer.py by changing
> 
> 
>         # Currently we always craft bounces as MIME messages.
>         bmsg = Message.UserNotification(msg.get_sender(),
>                                         self.GetOwnerEmail(),
>                                         subject,
>                                         lang=self.preferred_language)
> 
> to
> 
>         # Currently we always craft bounces as MIME messages.
>         bmsg = Message.UserNotification([msg.get_sender(),
>                                          self.GetOwnerEmail()],
>                                         self.GetOwnerEmail(),
>                                         subject,
>                                         lang=self.preferred_language)
> 
> This will include the LISTNAME-owner address in the To: of the
> rejection notice. However, this will be a global change affecting all
> lists in the installation.


The above suggestion will not work. It will only copy to the list
admins/moderators messages which are automatically rejected during
processing such as a non-member post with generic_nonmember_action =
Reject. It will not copy rejections from the admindb interface.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list