From: <bw...@us...> - 2002-05-23 19:45:30
|
Update of /cvsroot/cvs-syncmail/CVSROOT In directory usw-pr-cvs1:/tmp/cvs-serv11428 Modified Files: syncmail Log Message: Sebastian Ude's patch to include the realname of the developer Index: syncmail =================================================================== RCS file: /cvsroot/cvs-syncmail/CVSROOT/syncmail,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- syncmail 23 May 2002 17:52:23 -0000 1.10 +++ syncmail 23 May 2002 19:45:26 -0000 1.11 @@ -222,20 +222,21 @@ conn = smtplib.SMTP() conn.connect(MAILHOST, MAILPORT) user = pwd.getpwuid(os.getuid())[0] + name = pwd.getpwuid(os.getuid())[4] domain = fromhost or getfqdn() - author = '%s@%s' % (user, domain) + address = '%s@%s' % (user, domain) s = StringIO() sys.stdout = s try: print '''\ -From: %(author)s +From: %(name)s <%(address)s> To: %(people)s Subject: %(subject)s X-Mailer: Python syncmail %(version)s <http://sf.net/projects/cvs-syncmail> -''' % {'author' : author, - 'people' : string.join(people, COMMASPACE), - 'subject': subject, - 'version': __version__, +''' % {'address' : address, + 'people' : string.join(people, COMMASPACE), + 'subject' : subject, + 'version' : __version__, } s.write(sys.stdin.read()) # append the diffs if available |