From: Lars Magne Ingebrigtsen Date: Sat, 4 Sep 2010 22:09:33 +0000 (+0200) Subject: Really only check the incoming files once in a while. X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=d639251a1e82f39fb5ae3bddf07ba00ac4a5e3ec;p=gnus Really only check the incoming files once in a while. * nnml.el (nnml-save-nov): Message around nnml-save-nov so that the culprit is more visible. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 66db0f9ff..ef5e01e0c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,11 @@ 2010-09-04 Lars Magne Ingebrigtsen + * nnml.el (nnml-save-nov): Message around nnml-save-nov so that the + culprit is more visible. + + * mail-source.el (mail-source-delete-crash-box): Really only check the + incoming files once in a while. + * pop3.el (pop3-streaming-movemail): Always close the pop3 connection. * mail-source.el (mail-source-delete-crash-box): Only check the diff --git a/lisp/mail-source.el b/lisp/mail-source.el index 080433c0d..a8db55b18 100644 --- a/lisp/mail-source.el +++ b/lisp/mail-source.el @@ -637,20 +637,20 @@ Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) (> (time-to-seconds (time-since mail-source-incoming-last-checked-time)) (* 24 60 60))) - (setq mail-source-incoming-last-checked-time (current-time))) - (let ((incoming - (mm-make-temp-file - (expand-file-name - mail-source-incoming-file-prefix - mail-source-directory)))) - (unless (file-exists-p (file-name-directory incoming)) - (make-directory (file-name-directory incoming) t)) - (rename-file mail-source-crash-box incoming t) - ;; remove old incoming files? - (when (natnump mail-source-delete-incoming) - (mail-source-delete-old-incoming - mail-source-delete-incoming - mail-source-delete-old-incoming-confirm)))))) + (setq mail-source-incoming-last-checked-time (current-time)) + (let ((incoming + (mm-make-temp-file + (expand-file-name + mail-source-incoming-file-prefix + mail-source-directory)))) + (unless (file-exists-p (file-name-directory incoming)) + (make-directory (file-name-directory incoming) t)) + (rename-file mail-source-crash-box incoming t) + ;; remove old incoming files? + (when (natnump mail-source-delete-incoming) + (mail-source-delete-old-incoming + mail-source-delete-incoming + mail-source-delete-old-incoming-confirm))))))) (defun mail-source-movemail (from to) "Move FROM to TO using movemail." diff --git a/lisp/nnml.el b/lisp/nnml.el index 5a2473a28..6d5a8d20d 100644 --- a/lisp/nnml.el +++ b/lisp/nnml.el @@ -824,6 +824,7 @@ article number. This function is called narrowed to an article." buffer))) (defun nnml-save-nov () + (message "nnml saving nov...") (save-excursion (while nnml-nov-buffer-alist (when (buffer-name (cdar nnml-nov-buffer-alist)) @@ -833,7 +834,8 @@ article number. This function is called narrowed to an article." nnml-nov-buffer-file-name nil 'nomesg)) (set-buffer-modified-p nil) (kill-buffer (current-buffer))) - (setq nnml-nov-buffer-alist (cdr nnml-nov-buffer-alist))))) + (setq nnml-nov-buffer-alist (cdr nnml-nov-buffer-alist)))) + (message "nnml saving nov...done")) ;;;###autoload (defun nnml-generate-nov-databases (&optional server)