search-key.
* elmo-shimbun.el (shimbun-mua-search-id): Use
`elmo-message-entity' instead of `elmo-msgdb-message-entity'.
(elmo-shimbun-folder-shimbun-header): Ditto.
(elmo-shimbun-get-headers): Ditto.
(elmo-shimbun-update-overview): Ditto.
* elmo-pipe.el (elmo-folder-detach-messages): Define.
* elmo-net.el (elmo-folder-list-messages-unplugged): Use
`elmo-folder-list-messages' instead of `elmo-msgdb-list-messages'.
+2005-01-13 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-util.el (elmo-condition-parse-primitive): Downcase
+ search-key.
+
+ * elmo-shimbun.el (shimbun-mua-search-id): Use
+ `elmo-message-entity' instead of `elmo-msgdb-message-entity'.
+ (elmo-shimbun-folder-shimbun-header): Ditto.
+ (elmo-shimbun-get-headers): Ditto.
+ (elmo-shimbun-update-overview): Ditto.
+
+ * elmo-pipe.el (elmo-folder-detach-messages): Define.
+
+ * elmo-net.el (elmo-folder-list-messages-unplugged): Use
+ `elmo-folder-list-messages' instead of `elmo-msgdb-list-messages'.
+
2005-01-13 Yuuichi Teranishi <teranisi@gohome.org>
* elmo.el (elmo-message-fetch): Unset unread flag on server when
(elmo-delete-if
(lambda (number) (memq number deleting))
;; current number-list.
- (elmo-msgdb-list-messages (elmo-folder-msgdb folder)))
+ (elmo-folder-list-messages folder nil 'in-msgdb))
;; append appending messages
(mapcar (lambda (x) (* -1 x))
(elmo-dop-spool-folder-list-messages folder))))
(elmo-folder-delete-messages (elmo-pipe-folder-dst-internal folder)
numbers))
+(luna-define-method elmo-folder-detach-messages ((folder elmo-pipe-folder)
+ numbers)
+ (elmo-folder-detach-messages (elmo-pipe-folder-dst-internal folder)
+ numbers))
+
(defvar elmo-pipe-drained-hook nil "A hook called when the pipe is flushed.")
(defsubst elmo-pipe-folder-list-target-messages (src &optional ignore-list)
(luna-define-internal-accessors 'shimbun-elmo-mua))
(luna-define-method shimbun-mua-search-id ((mua shimbun-elmo-mua) id)
- (elmo-msgdb-message-entity (elmo-folder-msgdb
- (shimbun-elmo-mua-folder-internal mua))
- id))
+ (elmo-message-entity (shimbun-elmo-mua-folder-internal mua) id))
(eval-and-compile
(luna-define-class elmo-shimbun-folder
(defsubst elmo-shimbun-folder-shimbun-header (folder location)
(let ((hash (elmo-shimbun-folder-header-hash-internal folder)))
(or (and hash (elmo-get-hash-val location hash))
- (let ((entity (elmo-msgdb-message-entity
- (elmo-folder-msgdb folder)
- location))
+ (let ((entity (elmo-message-entity folder location))
(elmo-hash-minimum-size 63)
header)
(when entity
(delq nil
(mapcar
(lambda (x)
- (unless (elmo-msgdb-message-entity
- (elmo-folder-msgdb folder)
- (shimbun-header-id x))
+ (unless (elmo-message-entity folder (shimbun-header-id x))
x))
;; This takes much time.
(shimbun-headers
nil)
(defsubst elmo-shimbun-update-overview (folder shimbun-id header)
- (let ((entity (elmo-msgdb-message-entity (elmo-folder-msgdb folder)
- shimbun-id))
+ (let ((entity (elmo-message-entity folder shimbun-id))
(message-id (shimbun-header-id header))
references)
(unless (string= shimbun-id message-id)
(goto-char (match-end 0))
(let ((search-key (vector
(if (match-beginning 1) 'unmatch 'match)
- (elmo-match-buffer 2)
+ (downcase (elmo-match-buffer 2))
(elmo-condition-parse-search-value))))
;; syntax sugar.
(if (string= (aref search-key 1) "tocc")