changeset 25842:fa3f0301cf91

email: fix config default value inconsistency
author Matt Mackall <mpm@selenic.com>
date Thu, 25 Jun 2015 17:52:20 -0500
parents a2f7e0ba57a6
children bf9ea348b487
files mercurial/mail.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/mail.py	Thu Jun 25 17:51:32 2015 -0500
+++ b/mercurial/mail.py	Thu Jun 25 17:52:20 2015 -0500
@@ -154,7 +154,7 @@
 
 def _sendmail(ui, sender, recipients, msg):
     '''send mail using sendmail.'''
-    program = ui.config('email', 'method')
+    program = ui.config('email', 'method', 'smtp')
     cmdline = '%s -f %s %s' % (program, util.email(sender),
                                ' '.join(map(util.email, recipients)))
     ui.note(_('sending mail: %s\n') % cmdline)