Author: brosner
Date: Sun Dec 14 18:41:57 2008
New Revision: 45

Modified:
    trunk/mailerdev/mailer/engine.py

Log:
Added smtplib.SMTPSenderRefused to the list of exceptions caught to defer  
the e-mail.

Modified: trunk/mailerdev/mailer/engine.py
==============================================================================
--- trunk/mailerdev/mailer/engine.py    (original)
+++ trunk/mailerdev/mailer/engine.py    Sun Dec 14 18:41:57 2008
@@ -73,7 +73,7 @@
                      MessageLog.objects.log(message, 1) # @@@ avoid using  
literal result code
                      message.delete()
                      sent += 1
-                except (socket_error, smtplib.SMTPRecipientsRefused,  
smtplib.SMTPAuthenticationError), err:
+                except (socket_error, smtplib.SMTPSenderRefused,  
smtplib.SMTPRecipientsRefused, smtplib.SMTPAuthenticationError), err:
                      message.defer()
                      logging.info("message deferred due to failure: %s" %  
err)
                      MessageLog.objects.log(message, 3,  
log_message=str(err)) # @@@ avoid using literal result code

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to