* elmo-multi.el (elmo-multi-folder-diff): Fixed problem when
authorteranisi <teranisi>
Mon, 19 Nov 2001 02:03:55 +0000 (02:03 +0000)
committerteranisi <teranisi>
Mon, 19 Nov 2001 02:03:55 +0000 (02:03 +0000)
recent value is returned from imap folder.

elmo/ChangeLog
elmo/elmo-multi.el

index af6006b..0994cd0 100644 (file)
@@ -1,5 +1,8 @@
 2001-11-19  Yuuichi Teranishi  <teranisi@gohome.org>
 
+       * elmo-multi.el (elmo-multi-folder-diff): Fixed problem when
+       recent value is returned from imap folder.
+
        * elmo.el (elmo-folder-newsgroups): New generic function.
 
        * elmo-localnews.el (elmo-localnews-folder): Added `group' slot.
index 316b2db..b155020 100644 (file)
        (unsync 0)
        (messages 0)
        num-list
-       diffs)
+       diffs nums)
     ;; If first time, dummy numbers is used as current number list.
     (unless numbers
       (let ((i 0)
                                      (elmo-number-set-to-number-list killed)
                                      numbers))))
     (while flds
-      (setq diffs (nconc diffs (list (elmo-folder-diff
-                                     (car flds)
-                                     (car num-list)))))
+      (setq nums (elmo-folder-diff (car flds) (car num-list))
+           nums (cons (elmo-diff-unread nums) (elmo-diff-all nums)))
+      (setq diffs (nconc diffs (list nums)))
       (setq count (+ 1 count))
       (setq num-list (cdr num-list))
       (setq flds (cdr flds)))