From: jlgijsbers Date: Mon, 8 Sep 2003 21:08:59 +0000 (+0000) Subject: Let standard_message accept a different author. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5b453f93ffd594c7066c2540220dc57bee16f74a;p=roundup.git Let standard_message accept a different author. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1870 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/mailer.py b/roundup/mailer.py index fcadeab..0028618 100644 --- a/roundup/mailer.py +++ b/roundup/mailer.py @@ -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')