11"""Sending Roundup-specific mail over SMTP.
22"""
33__docformat__ = 'restructuredtext'
4- # $Id: mailer.py,v 1.8 2004-03-25 22:52:12 richard Exp $
4+ # $Id: mailer.py,v 1.9 2004-03-25 22:53:26 richard Exp $
55
66import time , quopri , os , socket , smtplib , re
77
@@ -99,8 +99,6 @@ def bounce_message(self, bounced_message, to, error,
9999 - subject: the subject as a string.
100100
101101 """
102- message , writer = self .get_standard_message (to , subject )
103-
104102 # see whether we should send to the dispatcher or not
105103 dispatcher_email = getattr (self .config , "DISPATCHER_EMAIL" ,
106104 getattr (self .config , "ADMIN_EMAIL" ))
@@ -110,6 +108,8 @@ def bounce_message(self, bounced_message, to, error,
110108 elif error_messages_to == "both" :
111109 to .append (dispatcher_email )
112110
111+ message , writer = self .get_standard_message (to , subject )
112+
113113 part = writer .startmultipartbody ('mixed' )
114114 part = writer .nextpart ()
115115 part .addheader ('Content-Transfer-Encoding' , 'quoted-printable' )
0 commit comments