From 9215b82eb0156ba7bc946aa14f5904130b15208d Mon Sep 17 00:00:00 2001 From: stransky Date: Sun, 27 Oct 2002 02:53:40 +0100 Subject: [PATCH] a devrait aller maintenant darcs-hash:20021027015340-a279a-6a7744641c04309ac0daffa71920010288c85b48.gz --- syncmail | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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