+2005-05-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-nntp.el (elmo-nntp-use-server-search-p): New function.
+ (elmo-folder-search): Use it.
+
2005-04-13 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* modb-standard.el (modb-standard-loaded-message-id): Use
from-msgs)))
result (sort result '<))))))
+(defun elmo-nntp-use-server-search-p (condition)
+ (if (vectorp condition)
+ (not (string= "body" (elmo-filter-key condition)))
+ (and (elmo-nntp-use-server-search-p (nth 1 condition))
+ (elmo-nntp-use-server-search-p (nth 2 condition)))))
+
(luna-define-method elmo-folder-search :around ((folder elmo-nntp-folder)
condition &optional from-msgs)
(if (and (elmo-folder-plugged-p folder)
- (not (string= "body" (elmo-filter-key condition))))
+ (elmo-nntp-use-server-search-p condition))
(elmo-nntp-search-internal folder condition from-msgs)
(luna-call-next-method)))