diff --git a/syncmail b/syncmail index 300dea30..4e3e280c 100755 --- a/syncmail +++ b/syncmail @@ -221,6 +221,8 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost): conn.connect(MAILHOST, MAILPORT) user = pwd.getpwuid(os.getuid())[0] domain = fromhost or getfqdn() + #Modif cosmétique pour afficher un sujet explicite : + host = string.split(domain,'.') author = '%s@%s' % (user, domain) s = StringIO() sys.stdout = s @@ -229,10 +231,10 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost): From: %(author)s To: %(people)s Subject: %(subject)s -X-CVSinfo: CVS@crans +X-CVSinfo: CRANS ''' % {'author' : author, 'people' : string.join(people, COMMASPACE), - 'subject': 'CVS commit sur'+domain+' : '+ subject, + 'subject': 'CVS commit sur '+host+' : '+ subject, } s.write(sys.stdin.read()) # append the diffs if available