1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 22:41:06 -08: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))