Mercurial > p > roundup > code
diff roundup/mailgw.py @ 588:16d13b9b8321
mailgw failures (unexpected ones) are forwarded to the roundup admin
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 23 Jan 2002 21:41:56 +0000 |
| parents | f0513f650042 |
| children | b43f031f3946 |
line wrap: on
line diff
--- a/roundup/mailgw.py Wed Jan 23 20:12:36 2002 +0000 +++ b/roundup/mailgw.py Wed Jan 23 21:41:56 2002 +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.57 2002-01-22 22:27:43 richard Exp $ +$Id: mailgw.py,v 1.58 2002-01-23 21:41:56 richard Exp $ ''' @@ -174,8 +174,11 @@ m = self.bounce_message(message, sendto, m) except: # bounce the message back to the sender with the error message - sendto = [sendto[0][1]] + sendto = [sendto[0][1], self.instance.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') m.append('---- traceback of failure ----') s = cStringIO.StringIO() import traceback @@ -754,6 +757,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.57 2002/01/22 22:27:43 richard +# . handle stripping of "AW:" from subject line +# # Revision 1.56 2002/01/22 11:54:45 rochecompaan # Fixed status change in mail gateway. #
