Mercurial > p > roundup > code
diff roundup/mailgw.py @ 3667:35811df7c783
fix error during mailgw bouncing message [SF#1413501]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 11 Aug 2006 01:41:25 +0000 |
| parents | ff32acc965da |
| children | b4d655b2aacf |
line wrap: on
line diff
--- a/roundup/mailgw.py Fri Aug 11 01:33:59 2006 +0000 +++ b/roundup/mailgw.py Fri Aug 11 01:41:25 2006 +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.176 2006-08-03 00:50:06 richard Exp $ +$Id: mailgw.py,v 1.177 2006-08-11 01:41:25 richard Exp $ """ __docformat__ = 'restructuredtext' @@ -535,19 +535,7 @@ # just inform the user that he is not authorized m = [''] m.append(str(value)) - try: - self.mailer.bounce_message(message, [sendto[0][1]], m) - except MessageSendError, error: - # if the only reason the bounce failed is because of - # invalid addresses to bounce the message back to, then - # just discard the message - it's just not worth bothering - # with (most likely spam / otherwise forged) - invalid = True - for address, (code, reason) in error.keys(): - if code != 550: - invalid = False - if not invalid: - raise + self.mailer.bounce_message(message, [sendto[0][1]], m) except IgnoreMessage: # do not take any action # this exception is thrown when email should be ignored
