Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2008-06-28 12:11:19 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2008-06-28 12:11:19 (GMT)
commitb6d15a6ebf408936ccec28e3bb75d9c3d9aae0d5 (patch)
tree4f5d0af363b777e9b29b005f59e916bcf4f44b46 /scripts
parent6d18860526d02ab7c7b201d9b7a0a254960145a8 (diff)
Cleanup the sender
Diffstat (limited to 'scripts')
-rw-r--r--scripts/report.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/report.py b/scripts/report.py
index 6ceb1d2..5ec52af 100644
--- a/scripts/report.py
+++ b/scripts/report.py
@@ -18,9 +18,9 @@ import jhbuild.moduleset
def _get_ticket_uri(number):
return 'http://dev.laptop.org/ticket/' + number
-def _send_mail(from_address, to_address, subject, text):
- msg = 'From: %s\nTo: %s\nSubject: %s\n%s' % \
- (from_address, to_address, subject, text)
+def _send_mail(sender, from_address, to_address, subject, text):
+ msg = 'From: %s<%s>\nTo: %s\nSubject: %s\n%s' % \
+ (sender, from_address, to_address, subject, text)
server = smtplib.SMTP('localhost')
server.sendmail(from_address, to_address, msg)
@@ -250,8 +250,9 @@ class cmd_report(Command):
print 'Sending to ' + ', '.join(options.sendto)
for to_address in options.sendto:
- _send_mail('release-team@sugarlabs.org', to_address,
- 'Reviews report', text)
+ _send_mail('Release Team',
+ 'mpgritti@gmail.com', to_address,
+ 'Reviews report', text)
else:
print 'Empty report, do not send'
else: