From 8ef678ed223d8d72d760084a6d72983e40d76dc3 Mon Sep 17 00:00:00 2001 From: stransky Date: Sun, 27 Oct 2002 02:48:29 +0100 Subject: [PATCH] quelques modifs cosmtiques darcs-hash:20021027014829-a279a-b5ab930cdb9fd1d670718e572e7d703286d37b66.gz --- syncmail | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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