+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)))))
(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))
(+
(* (elmo-multi-folder-divide-number-internal
folder) cur-number) x)))
- (elmo-folder-search
- (car flds) condition)))))
+ (ignore-errors
+ (elmo-folder-search
+ (car flds) condition))))))
(when numlist
(setq numlist-list (cdr numlist-list)))
(setq flds (cdr flds)))
(elmo-list-filter from-msgs result)
result)))
((string= "body" search-key)
- nil)
+ (error
+"Search by BODY is not supported (Toggle the plug off to search from caches)"))
(t
(let ((val (elmo-filter-value condition))
(negative (eq (elmo-filter-type condition) 'unmatch))