* elmo.el (elmo-message-field): Use elmo-message-entity-field.
authorteranisi <teranisi>
Mon, 22 Sep 2003 03:33:41 +0000 (03:33 +0000)
committerteranisi <teranisi>
Mon, 22 Sep 2003 03:33:41 +0000 (03:33 +0000)
* elmo-msgdb.el (elmo-msgdb-sort-by-date): Use elmo-message-entity-field.

elmo/ChangeLog
elmo/elmo-msgdb.el
elmo/elmo.el

index 52dfc5d..d0d4af8 100644 (file)
@@ -1,8 +1,11 @@
 2003-09-22  Yuuichi Teranishi  <teranisi@gohome.org>
 
+       * elmo.el (elmo-message-field): Use elmo-message-entity-field.
+
        * elmo-msgdb.el (elmo-msgdb-get-number): Abolish.
        (elmo-msgdb-get-parent-entity): Use elmo-message-entity-field.
        (elmo-msgdb-flag-table): Ditto.
+       (elmo-msgdb-sort-by-date): Ditto.
 
        * modb.el (elmo-msgdb-create-message-entity-from-file): Define.
 
index 3d93027..79b33ad 100644 (file)
      (condition-case nil
         (string<
          (timezone-make-date-sortable
-          (elmo-msgdb-message-entity-field msgdb x 'date))
+          (elmo-message-entity-field x 'date))
          (timezone-make-date-sortable
-          (elmo-msgdb-message-entity-field msgdb y 'date)))
+          (elmo-message-entity-field y 'date)))
        (error)))))
 
 
index a06abb0..9d606fc 100644 (file)
@@ -1279,9 +1279,7 @@ FIELD is a symbol of the field.")
 (luna-define-method elmo-message-field ((folder elmo-folder) number field)
   (when (zerop (elmo-folder-length folder))
     (error "Cannot treat this folder correctly."))
-  (elmo-msgdb-message-entity-field (elmo-folder-msgdb folder)
-                                  (elmo-message-entity folder number)
-                                  field))
+  (elmo-message-entity-field (elmo-message-entity folder number) field))
 
 (luna-define-method elmo-message-use-cache-p ((folder elmo-folder) number)
   nil) ; default is not use cache.