[PATCH] If sending mail several times from the same command, remember any SMTP password
Jesse Glick
Jesse.Glick at Sun.COM
Sun Jan 27 13:00:28 CST 2008
# HG changeset patch
# User Jesse Glick <jesse.glick at sun.com>
# Date 1201460047 18000
# Node ID 37ba50c7fffbc54a33b7048faaf383ae84c09be9
# Parent ed4d55c2366f1bd5fbb6b7ce39dff7fe959802b7
If sending mail several times from the same command, remember any SMTP password.
Useful when running patchbomb on a patch series.
diff --git a/mercurial/mail.py b/mercurial/mail.py
--- a/mercurial/mail.py
+++ b/mercurial/mail.py
@@ -32,6 +32,7 @@ def _smtp(ui):
password = ui.config('smtp', 'password')
if username and not password:
password = ui.getpass()
+ ui.setconfig('smtp', 'password', password)
if username and password:
ui.note(_('(authenticating to mail server as %s)\n') %
(username))
More information about the Mercurial-devel
mailing list