changeset 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 5d10e55d6cb2
children 28debb477133
files CHANGES.txt roundup/mailgw.py
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Wed Jan 23 20:12:36 2002 +0000
+++ b/CHANGES.txt	Wed Jan 23 21:41:56 2002 +0000
@@ -25,6 +25,7 @@
  . 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
--- 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.
 #

Roundup Issue Tracker: http://roundup-tracker.org/