summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a6a375)
raw | patch | inline | side by side (parent: 9a6a375)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 23 Jan 2002 21:41:56 +0000 (21:41 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 23 Jan 2002 21:41:56 +0000 (21:41 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@600 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/mailgw.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 822de3fa2855247f9ae11aa40312029dae245634..3968421f2e4f504f2d60883cad4766420b68ba51 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
. htmltemplate list() wasn't sorting...
. allow abbreviation of "help" in admin tool too.
. run_tests testReldate_date failed if LANG is 'german'
+ . mailgw failures (unexpected ones) are forwarded to the roundup admin
2002-01-16 - 0.4.0b2
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 6560af256bc04676840fce79f09009e6dfd941c1..988b459e7402c61d83b6144a73c5a52717c6ce50 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
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 $
'''
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
#
# $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.
#