equal
deleted
inserted
replaced
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.''' |