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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED]

Of course, either of these will affect all lists in this installation.

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to