mercurial/mail.py
changeset 14271 4030630fb59c
parent 14234 600e64004eb5
child 14965 194b043dfa51
equal deleted inserted replaced
14268:a55a0045704c 14271:4030630fb59c
   110     if method == 'smtp':
   110     if method == 'smtp':
   111         if not ui.config('smtp', 'host'):
   111         if not ui.config('smtp', 'host'):
   112             raise util.Abort(_('smtp specified as email transport, '
   112             raise util.Abort(_('smtp specified as email transport, '
   113                                'but no smtp host configured'))
   113                                'but no smtp host configured'))
   114     else:
   114     else:
   115         if not util.find_exe(method):
   115         if not util.findexe(method):
   116             raise util.Abort(_('%r specified as email transport, '
   116             raise util.Abort(_('%r specified as email transport, '
   117                                'but not in PATH') % method)
   117                                'but not in PATH') % method)
   118 
   118 
   119 def mimetextpatch(s, subtype='plain', display=False):
   119 def mimetextpatch(s, subtype='plain', display=False):
   120     '''If patch in utf-8 transfer-encode it.'''
   120     '''If patch in utf-8 transfer-encode it.'''