[Python-checkins] hooks: from address is really always built from to address
philip.jenvey
python-checkins at python.org
Tue Apr 19 00:47:28 CEST 2011
http://hg.python.org/hooks/rev/f6d82c6d5a7e
changeset: 70:f6d82c6d5a7e
user: Philip Jenvey <pjenvey at underboss.org>
date: Sun Apr 17 23:25:15 2011 -0700
summary:
from address is really always built from to address
files:
mail.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mail.py b/mail.py
--- a/mail.py
+++ b/mail.py
@@ -16,7 +16,6 @@
BASE = 'http://hg.python.org/'
CSET_URL = BASE + '%s/rev/%s'
-FROM = '%s <python-checkins at python.org>'
def send(sub, sender, to, body):
msg = MIMEMultipart()
@@ -75,6 +74,7 @@
if to is None:
print 'no email address configured'
return False
+ sender = '%s <%s>' % (user, to)
prefixes = [path]
@@ -105,7 +105,7 @@
subj = prefixes + desc
- send(subj, FROM % user, to, '\n'.join(body) + '\n')
+ send(subj, sender, to, '\n'.join(body) + '\n')
print 'notified %s of incoming changeset %s' % (to, ctx)
return False
--
Repository URL: http://hg.python.org/hooks
More information about the Python-checkins
mailing list