quelques modifs cosmtiques
darcs-hash:20021027014829-a279a-b5ab930cdb9fd1d670718e572e7d703286d37b66.gz
This commit is contained in:
parent
a2252d5f65
commit
8ef678ed22
1 changed files with 3 additions and 1 deletions
4
syncmail
4
syncmail
|
@ -220,6 +220,7 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost):
|
||||||
conn = smtplib.SMTP()
|
conn = smtplib.SMTP()
|
||||||
conn.connect(MAILHOST, MAILPORT)
|
conn.connect(MAILHOST, MAILPORT)
|
||||||
user = pwd.getpwuid(os.getuid())[0]
|
user = pwd.getpwuid(os.getuid())[0]
|
||||||
|
host =
|
||||||
domain = fromhost or getfqdn()
|
domain = fromhost or getfqdn()
|
||||||
author = '%s@%s' % (user, domain)
|
author = '%s@%s' % (user, domain)
|
||||||
s = StringIO()
|
s = StringIO()
|
||||||
|
@ -229,9 +230,10 @@ def blast_mail(subject, people, filestodiff, contextlines, fromhost):
|
||||||
From: %(author)s
|
From: %(author)s
|
||||||
To: %(people)s
|
To: %(people)s
|
||||||
Subject: %(subject)s
|
Subject: %(subject)s
|
||||||
|
X-CVSinfo: CVS@crans
|
||||||
''' % {'author' : author,
|
''' % {'author' : author,
|
||||||
'people' : string.join(people, COMMASPACE),
|
'people' : string.join(people, COMMASPACE),
|
||||||
'subject': subject,
|
'subject': 'CVS commit sur'+domain+' : '+ subject,
|
||||||
}
|
}
|
||||||
s.write(sys.stdin.read())
|
s.write(sys.stdin.read())
|
||||||
# append the diffs if available
|
# append the diffs if available
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue