(elmo-shimbun-get-headers): Fixed last change.
authorteranisi <teranisi>
Wed, 6 Jun 2001 04:18:33 +0000 (04:18 +0000)
committerteranisi <teranisi>
Wed, 6 Jun 2001 04:18:33 +0000 (04:18 +0000)
(elmo-folder-close-internal): Clean up last-check slot.

elmo/ChangeLog
elmo/elmo-shimbun.el

index feabe69..7b80b5c 100644 (file)
@@ -4,6 +4,7 @@
        (elmo-shimbun-msgdb-to-headers): Added `expire-days' argument.
        (elmo-shimbun-get-headers): Use return value of
        `shimbun-article-expiration-days'.
+       (elmo-folder-close-internal): Clean up last-check slot.
 
        * elmo-pop3.el (elmo-pop3-process-filter): Show retrieve progress.
        (elmo-pop3-total-size): New variable.
index 23b3243..5061dd7 100644 (file)
   (let (headers)
     (dolist (ov (elmo-msgdb-get-overview (elmo-folder-msgdb folder)))
       (when (and (elmo-msgdb-overview-entity-get-extra-field ov "xref")
-                (> (elmo-shimbun-lapse-seconds
-                    (elmo-shimbun-parse-time-string
-                     (elmo-msgdb-overview-entity-get-date ov)))
-                   (* expire-days 86400 ; seconds per day
-                      )))
+                (if expire-days
+                    (> (elmo-shimbun-lapse-seconds
+                        (elmo-shimbun-parse-time-string
+                         (elmo-msgdb-overview-entity-get-date ov)))
+                       (* expire-days 86400 ; seconds per day
+                          ))
+                  t))
        (setq headers
              (cons (shimbun-make-header
                     (elmo-msgdb-overview-entity-get-number ov)
   (elmo-shimbun-folder-set-headers-internal
    folder nil)
   (elmo-shimbun-folder-set-header-hash-internal
+   folder nil)
+  (elmo-shimbun-folder-set-last-check-internal
    folder nil))
 
 (luna-define-method elmo-folder-plugged-p ((folder elmo-shimbun-folder))