(elmo-message-folder): Call `elmo-message-folder' recursively.
authorokazaki <okazaki>
Sat, 24 Apr 2004 18:45:24 +0000 (18:45 +0000)
committerokazaki <okazaki>
Sat, 24 Apr 2004 18:45:24 +0000 (18:45 +0000)
(elmo-folder-diff): Avoid error `wrong-type-argument number-or-marker-p nil'
when a destination folder is a filter folder.

elmo/elmo-pipe.el

index 33f0f64..3229ac3 100644 (file)
         ((consp (cdr dst-diff)) ; new unread all
          (mapcar (lambda (number) (+ number src-length)) dst-diff))
         (t
-         (cons (+ (car dst-diff) src-length)
-               (+ (cdr dst-diff) src-length))))
+         (cons (+ (or (car dst-diff) 0) src-length)
+               (+ (or (cdr dst-diff) 0) src-length))))
       ;; No save.
       (elmo-folder-close-internal (elmo-pipe-folder-src-internal folder))
       (elmo-folder-close-internal (elmo-pipe-folder-dst-internal folder)))))
 
 (luna-define-method elmo-message-folder ((folder elmo-pipe-folder)
                                         number)
-  (elmo-pipe-folder-dst-internal folder))
+  (elmo-message-folder (elmo-pipe-folder-dst-internal folder) number))
 
 (require 'product)
 (product-provide (provide 'elmo-pipe) (require 'elmo-version))