Mercurial > public > mercurial-scm > hg
comparison mercurial/mail.py @ 2929:bd74898588a3
mail: fix connect
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 16 Aug 2006 11:03:32 -0700 |
parents | 20b95aef3fe0 |
children | 26c8d37496c2 |
comparison
equal
deleted
inserted
replaced
2928:27da6dddd0ee | 2929:bd74898588a3 |
---|---|
58 '''make a mail connection. object returned has one method, sendmail. | 58 '''make a mail connection. object returned has one method, sendmail. |
59 call as sendmail(sender, list-of-recipients, msg).''' | 59 call as sendmail(sender, list-of-recipients, msg).''' |
60 | 60 |
61 method = ui.config('email', 'method', 'smtp') | 61 method = ui.config('email', 'method', 'smtp') |
62 if method == 'smtp': | 62 if method == 'smtp': |
63 return smtp(ui) | 63 return _smtp(ui) |
64 | 64 |
65 return sendmail(ui, method) | 65 return _sendmail(ui, method) |
66 | 66 |
67 def sendmail(ui, sender, recipients, msg): | 67 def sendmail(ui, sender, recipients, msg): |
68 return connect(ui).sendmail(sender, recipients, msg) | 68 return connect(ui).sendmail(sender, recipients, msg) |