diff --git a/syncmail b/syncmail index 050b2f90..d6b5a838 100755 --- a/syncmail +++ b/syncmail @@ -220,6 +220,7 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost): conn = smtplib.SMTP() conn.connect(MAILHOST, MAILPORT) user = pwd.getpwuid(os.getuid())[0] + host = domain = fromhost or getfqdn() author = '%s@%s' % (user, domain) s = StringIO() @@ -229,9 +230,10 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost): From: %(author)s To: %(people)s Subject: %(subject)s +X-CVSinfo: CVS@crans ''' % {'author' : author, 'people' : string.join(people, COMMASPACE), - 'subject': subject, + 'subject': 'CVS commit sur'+domain+' : '+ subject, } s.write(sys.stdin.read()) # append the diffs if available