diff hgext/notify.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 eb26f8f70364
children f89fd07fc51d
line wrap: on
line diff
--- a/hgext/notify.py	Thu Jan 31 14:44:19 2008 -0600
+++ b/hgext/notify.py	Thu Jan 31 14:44:19 2008 -0600
@@ -135,7 +135,7 @@
     def fixmail(self, addr):
         '''try to clean up email addresses.'''
 
-        addr = templater.email(addr.strip())
+        addr = util.email(addr.strip())
         if self.domain:
             a = addr.find('@localhost')
             if a != -1:
@@ -231,7 +231,7 @@
         else:
             self.ui.status(_('notify: sending %d subscribers %d changes\n') %
                            (len(self.subs), count))
-            mail.sendmail(self.ui, templater.email(msg['From']),
+            mail.sendmail(self.ui, util.email(msg['From']),
                           self.subs, msgtext)
 
     def diff(self, node, ref):