Index: CVSROOT/postcommit_actions =================================================================== RCS file: /usr/local/cvsroot/CVSROOT/Attic/postcommit_actions,v diff -u -r1.2 -r1.3 --- CVSROOT/postcommit_actions 9 Feb 2004 13:42:43 -0000 1.2 +++ CVSROOT/postcommit_actions 9 Feb 2004 14:36:30 -0000 1.3 @@ -2,11 +2,11 @@ # Adapted by bdolicki for openacs.org # Changes to http://dev.zope.org/CVS/postcommit_actions : -# 001 -# The original file forced python2.1 because os.popen2 didn't work for them. -# on Python 1.5. It does work for us though so we didn't install python2.1 -# 002 -# Set some variables +# 001 The original file forced python2.1. We are using python2.3 and it works +# fine. +# 002 Set some variables +# 003 We want to put something like username@openacs.org as the sender email. +# (too bad we don't have LDAP, actually) """Apply checkin actions dictated by traffic_table.py, as checkins occur. @@ -71,6 +71,9 @@ #OFFICIAL_SENDER = "cvs-admin@your.domain" OFFICIAL_SENDER = "openacs-cvs-list-admin@willfork.com" +# 003 +MY_DOMAIN = openacs.org + # Ceiling on number of lines per file report (diff or "added"), at which point # we go to excerpts from the beginning and end: FILE_LINES_LIMIT = 1500 @@ -515,7 +518,10 @@ if not user: return ('', '') # Fallback values: - email = OFFICIAL_SENDER + # 003 + #email = OFFICIAL_SENDER + email = "%s@%s" % (user, MY_DOMAIN) + try: fullname = pwd.getpwnam(user)[4] except KeyError: