community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1738945 - /comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
Date Wed, 13 Apr 2016 14:05:21 GMT
Author: sebb
Date: Wed Apr 13 14:05:21 2016
New Revision: 1738945

URL: http://svn.apache.org/viewvc?rev=1738945&view=rev
Log:
Send e-mail to site-dev when diffs occur

Modified:
    comdev/reporter.apache.org/trunk/scripts/parsepmcs.py

Modified: comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/parsepmcs.py?rev=1738945&r1=1738944&r2=1738945&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/parsepmcs.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/parsepmcs.py Wed Apr 13 14:05:21 2016
@@ -210,22 +210,19 @@ for c in sorted(chairs):
         if not chairs[c] == web[c]:
             chairDiffs.append("Mismatch: Apache %s ctte %s web %s" % (c, chairs[c], web[c]))
         
-DEST='sebbaz@gmail.com' # TODO proper destination Temporary for testing
-BODY='Comparison of foundation/index.mdtext list of chairs with committee-info'
-import sendmail
+DEST='Site Development <site-dev@apache.org>'
+
 if len(chairDiffs) == 0:
     print("foundation/index.mdtext list of chairs agrees with committee-info")
-    try:
-        sendmail.sendMail("List of chairs agrees", BODY, DEST)
-    except Exception as e:
-        print("Error: unable to send email", e)
 else:
+    import sendmail
     print("foundation/index.mdtext list of chairs disagrees with committee-info:")
     for m in chairDiffs:
         print(m)
     try:
+        BODY="Comparison of foundation/index.mdtext list of chairs with committee-info\n"
         errs = "\n".join(chairDiffs)
-        sendmail.sendMail("List of chairs disagrees", BODY+"\n"+errs, DEST)
+        sendmail.sendMail("foundattion/index list of chairs disagrees with committee-info",
BODY+"\n"+errs, DEST)
     except Exception as e:
         print("Error: unable to send email", e)
 



Mime
View raw message