[Zope-CVS] CVS: CVSROOT - postcommit_actions:1.133

Ken Manheimer klm@zope.com
Mon, 1 Oct 2001 17:19:08 -0400


Update of /cvs-repository/CVSROOT
In directory cvs.zope.org:/tmp/cvs-serv30903

Modified Files:
	postcommit_actions 
Log Message:
send_mail(): Quote the fullname if it contains '.' or ',' (to avoid
sendmail mangling when *it* quotes them).  Untested - we'll see the
next time fred checks something in...


=== CVSROOT/postcommit_actions 1.132 => 1.133 ===
     if user:
         fullname, email = get_user_ldap_info(user)
+        if '.' in fullname or ',' in fullname:
+            fullname = '"' + fullname + '"'
     else:
         user = "*unknown*"
     if not fullname: