Mercurial > public > mercurial-scm > hg-stable
diff mercurial/mail.py @ 5975:75d9fe70c654
templater: move email function to util
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 31 Jan 2008 14:44:19 -0600 |
parents | ea77f6f77514 |
children | 962eb403165b |
line wrap: on
line diff
--- a/mercurial/mail.py Thu Jan 31 14:44:19 2008 -0600 +++ b/mercurial/mail.py Thu Jan 31 14:44:19 2008 -0600 @@ -6,7 +6,7 @@ # of the GNU General Public License, incorporated herein by reference. from i18n import _ -import os, smtplib, templater, util, socket +import os, smtplib, util, socket def _smtp(ui): '''build an smtp connection and return a function to send mail''' @@ -50,8 +50,8 @@ def _sendmail(ui, sender, recipients, msg): '''send mail using sendmail.''' program = ui.config('email', 'method') - cmdline = '%s -f %s %s' % (program, templater.email(sender), - ' '.join(map(templater.email, recipients))) + cmdline = '%s -f %s %s' % (program, util.email(sender), + ' '.join(map(util.email, recipients))) ui.note(_('sending mail: %s\n') % cmdline) fp = os.popen(cmdline, 'w') fp.write(msg)