[Mailman-Users] Changing the "<listname>-bounces" address
Mark Sapiro
mark at msapiro.net
Mon Mar 23 20:50:09 CET 2009
David Eisner wrote:
>
> I realize changes like this shouldn't be taken lightly and can have
> far reaching consequences, but this sounds like something we could
> live with here for the time being, i.e. Sender: getting set to the
> "-admin" address instead of the "-bounces" address.
>
> Does this look acceptable (followed by a 'mailmanctl restart')?
>
> $ diff -u Mailman/Handlers/SMTPDirect.py.orig
> Mailman/Handlers/SMTPDirect.py
> --- Mailman/Handlers/SMTPDirect.py.orig 2009-03-23 14:53:31.893203000 -0400
> +++ Mailman/Handlers/SMTPDirect.py 2009-03-23 15:15:19.419853000 -0400
> @@ -357,7 +357,8 @@
> # Errors-To while new ones will at worst ignore the header.
> del msg['sender']
> del msg['errors-to']
> - msg['Sender'] = envsender
> + # msg['Sender'] = envsender
> + msg['Sender'] = mlist.getListAddress('admin')
> msg['Errors-To'] = envsender
> # Get the plain, flattened text of the message, sans unixfrom
> msgtext = msg.as_string()
Yes. That's exactly the patch that's required.
--
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