Mercurial > public > mercurial-scm > hg
comparison mercurial/mail.py @ 2964:26c8d37496c2
fix typo in mail.py
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 20 Aug 2006 02:21:59 -0300 |
parents | bd74898588a3 |
children | abaee83ce0a6 669f99f78db0 |
comparison
equal
deleted
inserted
replaced
2963:a8546e40070a | 2964:26c8d37496c2 |
---|---|
16 s = smtplib.SMTP(local_hostname=local_hostname) | 16 s = smtplib.SMTP(local_hostname=local_hostname) |
17 mailhost = ui.config('smtp', 'host') | 17 mailhost = ui.config('smtp', 'host') |
18 if not mailhost: | 18 if not mailhost: |
19 raise util.Abort(_('no [smtp]host in hgrc - cannot send mail')) | 19 raise util.Abort(_('no [smtp]host in hgrc - cannot send mail')) |
20 mailport = int(ui.config('smtp', 'port', 25)) | 20 mailport = int(ui.config('smtp', 'port', 25)) |
21 self.note(_('sending mail: smtp host %s, port %s\n') % | 21 ui.note(_('sending mail: smtp host %s, port %s\n') % |
22 (mailhost, mailport)) | 22 (mailhost, mailport)) |
23 s.connect(host=mailhost, port=mailport) | 23 s.connect(host=mailhost, port=mailport) |
24 if ui.configbool('smtp', 'tls'): | 24 if ui.configbool('smtp', 'tls'): |
25 ui.note(_('(using tls)\n')) | 25 ui.note(_('(using tls)\n')) |
26 s.ehlo() | 26 s.ehlo() |
27 s.starttls() | 27 s.starttls() |