* elmo-filter.el (elmo-folder-msgdb-create): Add to mark-alist if
authorhmurata <hmurata>
Tue, 17 Sep 2002 01:04:56 +0000 (01:04 +0000)
committerhmurata <hmurata>
Tue, 17 Sep 2002 01:04:56 +0000 (01:04 +0000)
original mark is non-nil.

elmo/ChangeLog
elmo/elmo-filter.el

index 2ead7d5..4565287 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-17  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * elmo-filter.el (elmo-folder-msgdb-create): Add to mark-alist if
+       original mark is non-nil.
+
 2002-09-17  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * elmo-map.el (elmo-map-folder-list-unreads): Define default behavior.
index b0696d3..94e2d57 100644 (file)
       (let* ((target-folder (elmo-filter-folder-target-internal folder))
             (len (length numlist))
             (msgdb (elmo-folder-msgdb target-folder))
-            overview number-alist mark-alist message-id entity)
+            overview number-alist mark-alist message-id entity mark)
        (when (> len elmo-display-progress-threshold)
          (elmo-progress-set 'elmo-folder-msgdb-create
                             len "Creating msgdb..."))
                      message-id (elmo-msgdb-overview-entity-get-id entity)
                      number-alist (elmo-msgdb-number-add number-alist
                                                          number
-                                                         message-id)
-                     mark-alist (elmo-msgdb-mark-append
-                                 mark-alist
-                                 number
-                                 (elmo-msgdb-get-mark msgdb number))))
+                                                         message-id))
+               (when (setq mark (elmo-msgdb-get-mark msgdb number))
+                 (setq mark-alist (elmo-msgdb-mark-append
+                                   mark-alist
+                                   number
+                                   mark))))
              (elmo-progress-notify 'elmo-folder-msgdb-create))
          (elmo-progress-clear 'elmo-folder-msgdb-create))
        (list overview number-alist mark-alist))