aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorAndreas Schwab2016-01-31 14:29:14 +0100
committerAndreas Schwab2016-01-31 14:37:33 +0100
commitfc48106d0bdbd938ec51c1f9609b7a58108d8f00 (patch)
tree9e2225d67053f159656121050a509ad23a8f83f8 /lisp
parentcdecbedbf0cc0872bc41e842f67a5af40109f29d (diff)
downloademacs-fc48106d0bdbd938ec51c1f9609b7a58108d8f00.tar.gz
emacs-fc48106d0bdbd938ec51c1f9609b7a58108d8f00.zip
Fix imap-starttls-open
* lisp/net/imap.el (imap-starttls-open): Log imap process output. Call imap-parse-greeting. (Bug#22500)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/imap.el19
1 files changed, 12 insertions, 7 deletions
diff --git a/lisp/net/imap.el b/lisp/net/imap.el
index 7e4cc72028f..e5a14d75dee 100644
--- a/lisp/net/imap.el
+++ b/lisp/net/imap.el
@@ -747,14 +747,19 @@ sure of changing the value of `foo'."
747 :capability-command "1 CAPABILITY\r\n" 747 :capability-command "1 CAPABILITY\r\n"
748 :always-query-capabilities t 748 :always-query-capabilities t
749 :end-of-command "\r\n" 749 :end-of-command "\r\n"
750 :success " OK " 750 :success "^1 OK "
751 :starttls-function 751 :starttls-function
752 (lambda (capabilities) 752 #'(lambda (capabilities)
753 (when (string-match-p "STARTTLS" capabilities) 753 (when (string-match-p "STARTTLS" capabilities)
754 "1 STARTTLS\r\n")))) 754 "1 STARTTLS\r\n"))))
755 (done (if (and process 755 done)
756 (memq (process-status process) '(open run))) 756 (when process
757 process))) 757 (imap-log buffer)
758 (when (memq (process-status process) '(open run))
759 (setq done process)
760 (with-current-buffer buffer
761 (goto-char (point-min))
762 (imap-parse-greeting))))
758 (message "imap: Connecting with STARTTLS...%s" (if done "done" "failed")) 763 (message "imap: Connecting with STARTTLS...%s" (if done "done" "failed"))
759 done)) 764 done))
760 765