Mercurial > p > roundup > code
diff roundup/mailgw.py @ 1830:4ac11e7fa11a
Fix mailer bug [SF#817470]...
...and add docstrings to prevent this from happening again.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Sat, 04 Oct 2003 11:21:47 +0000 |
| parents | 0fd4bb86c313 |
| children | 492a962b6d6f |
line wrap: on
line diff
--- a/roundup/mailgw.py Fri Oct 03 19:15:24 2003 +0000 +++ b/roundup/mailgw.py Sat Oct 04 11:21:47 2003 +0000 @@ -73,7 +73,7 @@ an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.132 2003-09-08 21:27:16 jlgijsbers Exp $ +$Id: mailgw.py,v 1.133 2003-10-04 11:21:47 jlgijsbers Exp $ """ import string, re, os, mimetools, cStringIO, smtplib, socket, binascii, quopri @@ -440,7 +440,7 @@ self.db.confirm_registration(otk.group('otk')) subject = 'Your registration to %s is complete' % \ self.instance.config.TRACKER_NAME - sendto = message.getaddrlist('from')[0][1] + sendto = [message.getheader('from')] self.mailer.standard_message(sendto, subject, '') return elif hasattr(self.instance.config, 'MAIL_DEFAULT_CLASS') and \
