* elmo-filter.el (elmo-folder-diff): Fixed condition checking
authorhmurata <hmurata>
Tue, 15 Oct 2002 13:58:18 +0000 (13:58 +0000)
committerhmurata <hmurata>
Tue, 15 Oct 2002 13:58:18 +0000 (13:58 +0000)
`last:' filter.

elmo/ChangeLog
elmo/elmo-filter.el

index 582828f..5a91f61 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-15  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * elmo-filter.el (elmo-folder-diff): Fixed condition checking
+       `last:' filter.
+
 2002-10-06  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
        * elmo-dop.el (elmo-dop-queue-flush): Check obsolete at first.
index 612c47f..33b9808 100644 (file)
          (if (consp diff)
              (cons (car diff) (car diff))
            (cons (car diff) (nth 1 diff))))
-        ((string-match "^last$" (elmo-filter-key condition))
+        ((string= "last" (elmo-filter-key condition))
+         (luna-call-next-method))
+        (t
          (cons nil (cdr (elmo-folder-diff (elmo-filter-folder-target-internal
-                                           folder)))))
-        (t (luna-call-next-method)))
+                                           folder))))))
       (luna-call-next-method))))
 
 (luna-define-method elmo-folder-status ((folder elmo-filter-folder))