(modb-standard-loaded-message-id): Use
authorhmurata <hmurata>
Wed, 13 Apr 2005 05:02:05 +0000 (05:02 +0000)
committerhmurata <hmurata>
Wed, 13 Apr 2005 05:02:05 +0000 (05:02 +0000)
`elmo-msgdb-message-entity-field'.

elmo/ChangeLog
elmo/modb-standard.el

index 89cfb8d..57adc5d 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-13  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * modb-standard.el (modb-standard-loaded-message-id): Use
+       `elmo-msgdb-message-entity-field'.
+
 2005-04-11  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * elmo-util.el (elmo-object-load): Call `elmo-set-auto-coding'
index d813447..8f44be8 100644 (file)
              (modb-standard-key number)
              (modb-standard-entity-map-internal msgdb))))
     (cond
-     ((and ret (eq (car-safe ret) 'autoload))
-      (cdr (cdr ret))) ; message-id.
-     ((and ret (stringp (car-safe ret)))
-      ;; Already loaded.
-      (car ret))
      ((null ret)
       ;; Garbage entity.
       (elmo-clear-hash-val (modb-standard-key number)
                           (modb-standard-entity-map-internal msgdb))
       nil)                             ; return nil.
+     ((eq (car-safe ret) 'autoload)
+      (cdr (cdr ret)))                 ; message-id.
+     ((elmo-msgdb-message-entity-field (elmo-message-entity-handler ret)
+                                      ret 'message-id)) ; Already loaded.
      (t (error "Internal error: invalid msgdb status")))))
 
 (defun modb-standard-load-entity (modb path &optional section)