Mercurial > p > roundup > code
changeset 3948:81531a2aed59
Admin copy of error email from mailgw includes traceback
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 19 Nov 2007 20:45:57 +0000 |
| parents | 1405c6aa359f |
| children | 29dfb873b32e |
| files | CHANGES.txt doc/index.txt roundup/mailgw.py |
| diffstat | 3 files changed, 16 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Thu Nov 15 07:18:21 2007 +0000 +++ b/CHANGES.txt Mon Nov 19 20:45:57 2007 +0000 @@ -1,13 +1,19 @@ This file contains the changes to the Roundup system over time. The entries are given with the most recent entry first. -2007-11-?? 1.4.1 -Fixed: -- Removed some metakit references +2007-??-?? 1.4.2 +Feature: - New config option in mail section: ignore_alternatives allows to ignore alternatives besides the text/plain part used for the content of a message in multipart/alternative attachments. - Handle no time.tzset under Windows (sf #1825643) +- Admin copy of error email from mailgw includes traceback (thanks Ulrik + Mikaelsson) + + +2007-11-09 1.4.1 +Fixed: +- Removed some metakit references 2007-11-04 1.4.0
--- a/doc/index.txt Thu Nov 15 07:18:21 2007 +0000 +++ b/doc/index.txt Mon Nov 19 20:45:57 2007 +0000 @@ -129,6 +129,7 @@ Georges Martin, Gordon McMillan, John F Meinel Jr, +Ulrik Mikaelsson, John Mitchell, Ramiro Morales, Toni Mueller,
--- a/roundup/mailgw.py Thu Nov 15 07:18:21 2007 +0000 +++ b/roundup/mailgw.py Mon Nov 19 20:45:57 2007 +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.193 2007-11-14 14:57:47 schlatterbeck Exp $ +$Id: mailgw.py,v 1.194 2007-11-19 20:45:57 richard Exp $ """ __docformat__ = 'restructuredtext' @@ -764,12 +764,15 @@ # bounce the message back to the sender with the error message # let the admin know that something very bad is happening - sendto = [sendto[0][1], self.instance.config.ADMIN_EMAIL] m = [''] m.append('An unexpected error occurred during the processing') m.append('of your message. The tracker administrator is being') m.append('notified.\n') - self.mailer.bounce_message(message, sendto, m) + self.mailer.bounce_message(message, sendto[0][1], m) + + m.append('----------------') + m.append(traceback.format_exc()) + self.mailer.bounce_message(message, [self.instance.config.ADMIN_EMAIL], m) def handle_message(self, message): ''' message - a Message instance
