quelques modifs cosmtiques

darcs-hash:20021027014829-a279a-b5ab930cdb9fd1d670718e572e7d703286d37b66.gz
This commit is contained in:
stransky 2002-10-27 02:48:29 +01:00
parent a2252d5f65
commit 8ef678ed22

View file

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