a devrait aller maintenant

darcs-hash:20021027015340-a279a-6a7744641c04309ac0daffa71920010288c85b48.gz
This commit is contained in:
stransky 2002-10-27 02:53:40 +01:00
parent 59b4d42206
commit 9215b82eb0

View file

@ -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