[Mailman-Users] Insert customized Reply-To in welcome letter?
Mark Sapiro
msapiro at value.net
Mon Apr 3 23:42:40 CEST 2006
Paul Aitkenhead wrote:
>
>So... my thought is to put a Reply-To header in the
>welcome letter that simply refers to my own email. That
>way, if they make the mistake of replying to the welcome
>letter I can catch it and handle as I see fit.
>
>Can you tell me where to look in the code to make this
>change, that is, put a Reply-To header in the welcome
>letter.
There are a couple of ways to do this. You could look at the
UserNotification class in Mailman/Message.py and in it's __init__()
method, add another argument, say replyto=None, to the end of the
argument list and then add
if replyto:
self['Reply-To'] = replyto
to the body of the definition.
Then in Mailman/Deliverer.py in the definition of SendSubscribeAck(),
you could change
msg = Message.UserNotification(
self.GetMemberAdminEmail(name), self.GetRequestEmail(),
_('Welcome to the "%(realname)s" mailing list%(digmode)s'),
text, pluser)
to
msg = Message.UserNotification(
self.GetMemberAdminEmail(name), self.GetRequestEmail(),
_('Welcome to the "%(realname)s" mailing list%(digmode)s'),
text, pluser, self.GetOwnerEmail())
to add Reply-To: list-owner at ... to the message.
Or, you could not change UserNotification at all and just change the
call in SendSubscribeAck to
msg = Message.UserNotification(
self.GetMemberAdminEmail(name), self.GetOwnerEmail(),
_('Welcome to the "%(realname)s" mailing list%(digmode)s'),
text, pluser)
to make the message be From: list-owner at ...
Of course, either of these will affect all lists in this installation.
--
Mark Sapiro <msapiro at value.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