# HG changeset patch # User Patrick Mezard # Date 1294429842 -3600 # Node ID d8f92c3a17d62ccb298842232ffb92c333150ca8 # Parent 159651b3c9ecddc6b99c5a8b93c36d3ff0543fd8 mail: fix regression when parsing unset smtp.tls option diff -r 159651b3c9ec -r d8f92c3a17d6 mercurial/mail.py --- a/mercurial/mail.py Fri Jan 07 20:50:41 2011 +0100 +++ b/mercurial/mail.py Fri Jan 07 20:50:42 2011 +0100 @@ -33,7 +33,7 @@ def _smtp(ui): '''build an smtp connection and return a function to send mail''' local_hostname = ui.config('smtp', 'local_hostname') - tls = ui.config('smtp', 'tls') + tls = ui.config('smtp', 'tls', 'none') # backward compatible: when tls = true, we use starttls. starttls = tls == 'starttls' or util.parsebool(tls) smtps = tls == 'smtps'