2003-09-22 Yuuichi Teranishi <teranisi@gohome.org>
+ * elmo-msgdb.el (elmo-msgdb-get-number): Abolish.
+ (elmo-msgdb-get-parent-entity): Use elmo-message-entity-field.
+ (elmo-msgdb-flag-table): Ditto.
+
* modb.el (elmo-msgdb-create-message-entity-from-file): Define.
* modb-standard.el (toplevel): Require mime.
;;
;; MSGDB elmo-load-msgdb PATH
-;; NUMBER elmo-msgdb-get-number MSGDB MESSAGE-ID
;; elmo-msgdb-sort-by-date MSGDB
;; elmo-flag-table-load
(luna-make-entity class
:location location)))
-(defsubst elmo-msgdb-get-number (msgdb message-id)
- "Get number of the message which corrensponds to MESSAGE-ID from MSGDB."
- (elmo-msgdb-message-entity-number
- msgdb (elmo-msgdb-message-entity msgdb message-id)))
-
(defun elmo-msgdb-sort-by-date (msgdb)
(elmo-msgdb-sort-entities
msgdb
(defsubst elmo-msgdb-get-parent-entity (entity msgdb)
- (setq entity (elmo-msgdb-message-entity-field msgdb entity 'references))
+ (setq entity (elmo-message-entity-field entity 'references))
;; entity is parent-id.
(and entity (elmo-msgdb-message-entity msgdb entity)))
(setq entity (elmo-msgdb-message-entity msgdb number))
(elmo-flag-table-set
flag-table
- (elmo-msgdb-message-entity-field msgdb entity 'message-id)
+ (elmo-message-entity-field entity 'message-id)
(elmo-msgdb-flags msgdb number)))
flag-table))