You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2016/04/13 16:05:21 UTC
svn commit: r1738945 - /comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
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 <si...@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)