You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@incubator.apache.org by jo...@apache.org on 2016/05/01 15:12:15 UTC

svn commit: r1741863 - /incubator/public/trunk/report_reminders.py

Author: johndament
Date: Sun May  1 13:12:15 2016
New Revision: 1741863

URL: http://svn.apache.org/viewvc?rev=1741863&view=rev
Log:
Misused email variable

Modified:
    incubator/public/trunk/report_reminders.py

Modified: incubator/public/trunk/report_reminders.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/report_reminders.py?rev=1741863&r1=1741862&r2=1741863&view=diff
==============================================================================
--- incubator/public/trunk/report_reminders.py (original)
+++ incubator/public/trunk/report_reminders.py Sun May  1 13:12:15 2016
@@ -29,14 +29,14 @@ s.login(username, password)
 print "connected"
 for podling in podlingsToReport:
     msgId = email.utils.make_msgid()
-    email = emailFormat.format(podling)
+    emailTo = emailFormat.format(podling)
     msg = MIMEText(messageBody)
     msg['Subject'] = 'Podling Report Reminder - May 2016'
     msg['From'] = me
-    msg['Date'] = email.utils.formatdate(localtime=True)
-    msg['To'] = email
+    msg['Date'] = email.utils.formatdate()
+    msg['To'] = emailTo
     msg['Message-ID'] = msgId
-    s.sendmail(me, [email], msg.as_string())
-    print(' sent ',msgId,' to podling ',email)
+    s.sendmail(me, [emailTo], msg.as_string())
+    print(' sent ',msgId,' to podling ',emailTo)
 
-s.quit()
\ No newline at end of file
+s.quit()



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org