1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

Fix return value of imap-starttls-open

* lisp/net/imap.el (imap-starttls-open): Fix return value.
This commit is contained in:
Andreas Schwab 2016-01-31 13:34:03 +01:00
parent 20c7e34a71
commit cdecbedbf0

View File

@ -752,8 +752,9 @@ sure of changing the value of `foo'."
(lambda (capabilities)
(when (string-match-p "STARTTLS" capabilities)
"1 STARTTLS\r\n"))))
(done (and process
(memq (process-status process) '(open run)))))
(done (if (and process
(memq (process-status process) '(open run)))
process)))
(message "imap: Connecting with STARTTLS...%s" (if done "done" "failed"))
done))