* elmo-filter.el (elmo-folder-msgdb-create): Use
authorhmurata <hmurata>
Thu, 4 Dec 2003 02:12:48 +0000 (02:12 +0000)
committerhmurata <hmurata>
Thu, 4 Dec 2003 02:12:48 +0000 (02:12 +0000)
`elmo-message-entity' and `elmo-message-flags' instead of
`elmo-msgdb-message-entity' and `elmo-msgdb-flags'.

elmo/ChangeLog
elmo/elmo-filter.el

index f797f4f..2b38ff9 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-04  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * elmo-filter.el (elmo-folder-msgdb-create): Use
+       `elmo-message-entity' and `elmo-message-flags' instead of
+       `elmo-msgdb-message-entity' and `elmo-msgdb-flags'.
+
 2003-11-27  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * elmo-spam.el (elmo-spam-processor): Added 3rd argument
index 2e0e7ec..b43fd34 100644 (file)
   (if (elmo-filter-folder-require-msgdb-internal folder)
       (let* ((target-folder (elmo-filter-folder-target-internal folder))
             (len (length numlist))
-            (msgdb (progn
-                     (elmo-folder-check target-folder)
-                     (elmo-folder-msgdb target-folder)))
             (new-msgdb (elmo-make-msgdb))
             message-id entity)
+       (elmo-folder-check target-folder)
        (when (> len elmo-display-progress-threshold)
          (elmo-progress-set 'elmo-folder-msgdb-create
                             len "Creating msgdb..."))
        (unwind-protect
            (dolist (number numlist)
-             (setq entity (elmo-msgdb-message-entity msgdb number))
+             (setq entity (elmo-message-entity target-folder number))
              (when entity
-               (elmo-msgdb-append-entity new-msgdb entity
-                                         (elmo-msgdb-flags msgdb number)))
+               (elmo-msgdb-append-entity
+                new-msgdb entity
+                (elmo-message-flags target-folder number)))
              (elmo-progress-notify 'elmo-folder-msgdb-create))
          (elmo-progress-clear 'elmo-folder-msgdb-create))
        new-msgdb)