Code

Let standard_message accept a different author.
authorjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 8 Sep 2003 21:08:59 +0000 (21:08 +0000)
committerjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 8 Sep 2003 21:08:59 +0000 (21:08 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1870 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/mailer.py

index fcadeab6ebdfe6ee50a5b192bb090b9b65179820..002861856fe9af4a6dc72c91ac7946e2ae6518ac 100644 (file)
@@ -1,5 +1,5 @@
 """Sending Roundup-specific mail over SMTP."""
-# $Id: mailer.py,v 1.1 2003-09-08 09:28:28 jlgijsbers Exp $
+# $Id: mailer.py,v 1.2 2003-09-08 21:08:59 jlgijsbers Exp $
 
 import time, quopri, os, socket, smtplib, re
 
@@ -41,8 +41,8 @@ class Mailer:
         
         return message, writer
 
-    def standard_message(self, to, subject, content):
-        message, writer = self.get_standard_message(to, subject)
+    def standard_message(self, to, subject, content, author=None):
+        message, writer = self.get_standard_message(to, subject, author)
 
         writer.addheader('Content-Transfer-Encoding', 'quoted-printable')
         body = writer.startbody('text/plain; charset=utf-8')