Only save the mailer choice after sending the mail
commitb72de45eb00b6a1c35a3d11914fb862ebb30034a
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Apr 2018 18:42:44 +0000 (15 20:42 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Apr 2018 18:42:44 +0000 (15 20:42 +0200)
tree40c116e1f8a3f2bca4ec2a23571ce3ac39275a0a
parent54f7ec01c336d315c3b9e69c60ef18100840dd54
Only save the mailer choice after sending the mail

* lisp/mail/sendmail.el (sendmail-query-once): Only save the
mailer choice after we've sent the mail, so that if that fails,
the user has an easy way to back out of the choice and make
another (bug#14487).
(sendmail-query-user-about-smtp): Return the choice; don't save it.
lisp/mail/sendmail.el