subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1801009 - /subversion/trunk/tools/dist/security/mailer.py
Date Thu, 06 Jul 2017 10:04:00 GMT
Author: danielsh
Date: Thu Jul  6 10:04:00 2017
New Revision: 1801009

URL: http://svn.apache.org/viewvc?rev=1801009&view=rev
Log:
* tools/dist/security/mailer.py
  (Mailer.send_mail.send): Mention an apparent bug and its fix.

Modified:
    subversion/trunk/tools/dist/security/mailer.py

Modified: subversion/trunk/tools/dist/security/mailer.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/security/mailer.py?rev=1801009&r1=1801008&r2=1801009&view=diff
==============================================================================
--- subversion/trunk/tools/dist/security/mailer.py (original)
+++ subversion/trunk/tools/dist/security/mailer.py Thu Jul  6 10:04:00 2017
@@ -232,6 +232,9 @@ class Mailer(object):
             server.login(username, password)
 
         def send(message):
+            # XXX: The from,to arguments should be bare addresses with no "foo:"
+            #      prefix.  It works this way in practice, but that appears to
+            #      be an accident of implementation of smtplib.
             server.sendmail("From: " + message['From'],
                             "To: " + message['To'],
                             message.as_string())



Mime
View raw message