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/27 00:41:49 UTC

svn commit: r1745701 - in /incubator/public/trunk: email_reminder_template.txt report_reminders.py

Author: johndament
Date: Fri May 27 00:41:49 2016
New Revision: 1745701

URL: http://svn.apache.org/viewvc?rev=1745701&view=rev
Log:
Cleaned up email generator.

Modified:
    incubator/public/trunk/email_reminder_template.txt
    incubator/public/trunk/report_reminders.py

Modified: incubator/public/trunk/email_reminder_template.txt
URL: http://svn.apache.org/viewvc/incubator/public/trunk/email_reminder_template.txt?rev=1745701&r1=1745700&r2=1745701&view=diff
==============================================================================
--- incubator/public/trunk/email_reminder_template.txt (original)
+++ incubator/public/trunk/email_reminder_template.txt Fri May 27 00:41:49 2016
@@ -4,11 +4,11 @@ This email was sent by an automated syst
 Incubator PMC. It is an initial reminder to give you plenty of time to
 prepare your quarterly board report.
 
-The board meeting is scheduled for Wed, 18 May 2016, 10:30 am PDT.
+The board meeting is scheduled for Wed, 15 June 2016, 10:30 am PDT.
 The report for your podling will form a part of the Incubator PMC
 report. The Incubator PMC requires your report to be submitted 2 weeks
 before the board meeting, to allow sufficient time for review and
-submission (Wed, May 4th).
+submission (Wed, June 1st).
 
 Please submit your report with sufficient time to allow the Incubator
 PMC, and subsequently board members to review and digest. Again, the

Modified: incubator/public/trunk/report_reminders.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/report_reminders.py?rev=1745701&r1=1745700&r2=1745701&view=diff
==============================================================================
--- incubator/public/trunk/report_reminders.py (original)
+++ incubator/public/trunk/report_reminders.py Fri May 27 00:41:49 2016
@@ -14,24 +14,36 @@ fp.close()
 with open('content/shepherd_assignments.json') as data_file:    
     data = json.load(data_file)
 
-podlingsToReport = data['2016-05'].keys()
-
-meFormat = '{}@apache.org'
-emailFormat = "dev@{}.incubator.apache.org"
 
+month = raw_input('Enter month, in the format of YYYY-MM: ')
 username = raw_input('Enter your ASF Username: ')
 password = getpass.getpass('Enter your ASF pw: ')
 
+podlingsToReport = data[month].keys()
+
+meFormat = '{}@apache.org'
+emailFormat = "dev@{}.incubator.apache.org"
+
 me = meFormat.format(username)
 
+overrides = {
+    'climatemodeldiagnosticanalyzer':'dev@cmda.incubator.apache.org',
+    'blur':'blur-dev@incubator.apache.org',
+    'wave':'wave-dev@incubator.apache.org',
+    'log4cxx2':'log4cxx-dev@logging.apache.org'
+}
+
 s = SMTP('mail-relay.apache.org')
 s.login(username, password)
 print "connected"
 for podling in podlingsToReport:
+    if podling in overrides:
+        emailTo = overrides[podling]
+    else:
+        emailTo = emailFormat.format(podling)
     msgId = email.utils.make_msgid()
-    emailTo = emailFormat.format(podling)
     msg = MIMEText(messageBody)
-    msg['Subject'] = 'Podling Report Reminder - May 2016'
+    msg['Subject'] = 'Podling Report Reminder - June 2016'
     msg['From'] = me
     msg['Date'] = email.utils.formatdate()
     msg['To'] = emailTo



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