More bugfixes from puppet.

This commit is contained in:
Ricky Zhou (周家杰) 2009-11-21 19:19:32 -05:00
parent 31886898e2
commit 7f129c1d86

View file

@ -64,14 +64,14 @@ def send_email(name, md5, filename, username):
(filename, name, md5, username)
msg = MIMEText(text)
sender = 'nobody@fedoraproject.org'
recepients = [ '%s-owner@fedoraproject.org' % name, \
recipients = [ '%s-owner@fedoraproject.org' % name, \
'fedora-extras-commits@redhat.com' ]
msg['Subject'] = 'File %s uploaded to lookaside cache by %s' % ( filename, username)
msg['From'] = sender
msg['To'] = recepients
msg['To'] = ', '.join(recipients)
try:
s = smtplib.SMTP()
s.sendmail(sender, recepients, msg.as_string())
s.sendmail(sender, recipients, msg.as_string())
except:
syslog.syslog('sending mail for upload of %s failed!' % filename)