+2002-11-21 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-nntp.el (elmo-nntp-search-primitive): Revert the last change.
+
+ * elmo-multi.el (elmo-folder-search): Ignore errors while search.
+
+ * elmo-imap4.el (elmo-imap4-response-garbage-p): New macro.
+ (elmo-imap4-read-response): Take care of garbage response.
+
2002-11-20 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* elmo-nntp.el (elmo-nntp-search-primitive): Fix the last change,
"Returns non-nil if RESPONSE is an 'BYE' response."
(` (assq 'bye (, response))))
+(defmacro elmo-imap4-response-garbage-p (response)
+ "Returns non-nil if RESPONSE is an 'garbage' response."
+ (` (assq 'garbage (, response))))
+
(defmacro elmo-imap4-response-value (response symbol)
"Get value of the SYMBOL from RESPONSE."
(` (nth 1 (assq (, symbol) (, response)))))
matched))
(defmacro elmo-imap4-response-error-text (response)
- "Returns text of NO, BAD, BYE response."
+ "Returns text of NO, BAD, BYE, response."
(` (nth 1 (or (elmo-imap4-response-value (, response) 'no)
(elmo-imap4-response-value (, response) 'bad)
(elmo-imap4-response-value (, response) 'bye)))))
(with-current-buffer (process-buffer
(elmo-network-session-process-internal session))
(while (not (or (string= tag elmo-imap4-reached-tag)
- (elmo-imap4-response-bye-p elmo-imap4-current-response)))
+ (elmo-imap4-response-bye-p elmo-imap4-current-response)
+ (when (elmo-imap4-response-garbage-p
+ elmo-imap4-current-response)
+ (message "Garbage response: %s"
+ (elmo-imap4-response-value
+ elmo-imap4-current-response
+ 'garbage))
+ t)))
(when (memq (process-status
(elmo-network-session-process-internal session))
'(open run))