From: teranisi Date: Thu, 1 Nov 2001 01:32:17 +0000 (+0000) Subject: * elmo-imap4.el (elmo-imap4-send-command): If BYE response is detected, X-Git-Tag: wl-2_6_1~8 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfdae6f86a56c9689f1a1ea767b62ab841e595af;p=elisp%2Fwanderlust.git * elmo-imap4.el (elmo-imap4-send-command): If BYE response is detected, delete process. (elmo-imap4-accept-ok): Ditto. --- diff --git a/elmo/ChangeLog b/elmo/ChangeLog index f318968..d337b73 100644 --- a/elmo/ChangeLog +++ b/elmo/ChangeLog @@ -1,3 +1,9 @@ +2001-11-01 Yuuichi Teranishi + + * elmo-imap4.el (elmo-imap4-send-command): If BYE response is detected, + delete process. + (elmo-imap4-accept-ok): Ditto. + 2001-10-09 Yoichi NAKAYAMA * elmo-maildir.el (elmo-maildir-max-of-folder): Call diff --git a/elmo/elmo-imap4.el b/elmo/elmo-imap4.el index 624da68..573246c 100644 --- a/elmo/elmo-imap4.el +++ b/elmo/elmo-imap4.el @@ -240,10 +240,11 @@ Returns a TAG string which is assigned to the COMAND." (setq cmdstr (concat tag " ")) ;; (erase-buffer) No need. (goto-char (point-min)) - (if (elmo-imap4-response-bye-p elmo-imap4-current-response) - (signal 'elmo-imap4-bye-error - (list (elmo-imap4-response-error-text - elmo-imap4-current-response)))) + (when (elmo-imap4-response-bye-p elmo-imap4-current-response) + (elmo-network-close-session session) + (signal 'elmo-imap4-bye-error + (list (elmo-imap4-response-error-text + elmo-imap4-current-response)))) (setq elmo-imap4-current-response nil) (if elmo-imap4-parsing (error "IMAP process is running. Please wait (or plug again.)")) @@ -355,8 +356,10 @@ If response is not `OK' response, causes error with IMAP response text." (if (elmo-imap4-response-ok-p response) response (if (elmo-imap4-response-bye-p response) - (signal 'elmo-imap4-bye-error - (list (elmo-imap4-response-error-text response))) + (progn + (elmo-network-close-session session) + (signal 'elmo-imap4-bye-error + (list (elmo-imap4-response-error-text response)))) (error "IMAP error: %s" (or (elmo-imap4-response-error-text response) "No `OK' response from server."))))))