Mercurial > p > roundup > code
diff roundup/mailgw.py @ 380:a1331423eb93
Fixed issues with nosy reaction and author copies.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 12 Nov 2001 22:01:07 +0000 |
| parents | c7b5b1aa6b4a |
| children | be28f4c4feb6 |
line wrap: on
line diff
--- a/roundup/mailgw.py Fri Nov 09 22:33:28 2001 +0000 +++ b/roundup/mailgw.py Mon Nov 12 22:01:07 2001 +0000 @@ -72,7 +72,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.30 2001-11-09 22:33:28 richard Exp $ +$Id: mailgw.py,v 1.31 2001-11-12 22:01:06 richard Exp $ ''' @@ -138,7 +138,8 @@ if sendto: try: self.handle_message(message) - return + sendto = [sendto[0][1]] + m = ['Subject: Well, it seemed to work', '', 'hi, mum!'] except MailUsageError, value: # bounce the message back to the sender with the usage message fulldoc = '\n'.join(string.split(__doc__, '\n')[2:]) @@ -150,8 +151,7 @@ except: # bounce the message back to the sender with the error message sendto = [sendto[0][1]] - m = ['Subject: failed issue tracker submission'] - m.append('') + m = ['Subject: failed issue tracker submission', ''] # TODO as attachments? m.append('---- traceback of failure ----') s = cStringIO.StringIO() @@ -516,6 +516,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.30 2001/11/09 22:33:28 richard +# More error handling fixes. +# # Revision 1.29 2001/11/07 05:29:26 richard # Modified roundup-mailgw so it can read e-mails from a local mail spool # file. Truncates the spool file after parsing.
