Mercurial > emacs
diff lisp/gnus/mail-source.el @ 111573:e89dd9c3633b
merge trunk
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 08 Nov 2010 14:19:54 +0900 |
parents | 8fecec59e268 |
children | 417b1e4d63cd |
line wrap: on
line diff
--- a/lisp/gnus/mail-source.el Mon Nov 08 14:19:24 2010 +0900 +++ b/lisp/gnus/mail-source.el Mon Nov 08 14:19:54 2010 +0900 @@ -501,6 +501,8 @@ (t value))) +(autoload 'nnheader-message "nnheader") + (defun mail-source-fetch (source callback &optional method) "Fetch mail from SOURCE and call CALLBACK zero or more times. CALLBACK will be called with the name of the file where (some of) @@ -594,6 +596,8 @@ 0) (funcall callback mail-source-crash-box info))) +(autoload 'gnus-float-time "gnus-util") + (defvar mail-source-incoming-last-checked-time nil) (defun mail-source-delete-crash-box () @@ -614,7 +618,7 @@ ;; Don't check for old incoming files more than once per day to ;; save a lot of file accesses. (when (or (null mail-source-incoming-last-checked-time) - (> (time-to-seconds + (> (gnus-float-time (time-since mail-source-incoming-last-checked-time)) (* 24 60 60))) (setq mail-source-incoming-last-checked-time (current-time))