Fix return value of imap-starttls-open
* lisp/net/imap.el (imap-starttls-open): Fix return value.
This commit is contained in:
parent
20c7e34a71
commit
cdecbedbf0
1 changed files with 3 additions and 2 deletions
|
@ -752,8 +752,9 @@ sure of changing the value of `foo'."
|
||||||
(lambda (capabilities)
|
(lambda (capabilities)
|
||||||
(when (string-match-p "STARTTLS" capabilities)
|
(when (string-match-p "STARTTLS" capabilities)
|
||||||
"1 STARTTLS\r\n"))))
|
"1 STARTTLS\r\n"))))
|
||||||
(done (and process
|
(done (if (and process
|
||||||
(memq (process-status process) '(open run)))))
|
(memq (process-status process) '(open run)))
|
||||||
|
process)))
|
||||||
(message "imap: Connecting with STARTTLS...%s" (if done "done" "failed"))
|
(message "imap: Connecting with STARTTLS...%s" (if done "done" "failed"))
|
||||||
done))
|
done))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue