diff options
author | Miles Bader <miles@gnu.org> | 2008-03-10 02:39:21 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2008-03-10 02:39:21 +0000 |
commit | 37a68866aa6fd30bcd423b48cb8871b80027f0ba (patch) | |
tree | 9f1b2ad74fc6a96df14cf189def2d74d8e2c40f5 /lisp/gnus/mail-source.el | |
parent | 8f7abae3a9c0dcb827f50688e802d634c7461ece (diff) | |
download | emacs-37a68866aa6fd30bcd423b48cb8871b80027f0ba.tar.gz emacs-37a68866aa6fd30bcd423b48cb8871b80027f0ba.tar.bz2 emacs-37a68866aa6fd30bcd423b48cb8871b80027f0ba.zip |
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1099
Diffstat (limited to 'lisp/gnus/mail-source.el')
-rw-r--r-- | lisp/gnus/mail-source.el | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index 499d250f4cd..3a90990d5d8 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el @@ -303,11 +303,11 @@ You may also set this variable to nil and call (const :tag "never" nil) (integer :tag "days"))) -(defcustom mail-source-delete-old-incoming-confirm t - "*If non-nil, ask for confirmation before deleting old incoming files. +(defcustom mail-source-delete-old-incoming-confirm nil + "If non-nil, ask for confirmation before deleting old incoming files. This variable only applies when `mail-source-delete-incoming' is a positive number." - :version "22.1" + :version "22.2" ;; No Gnus / Gnus 5.10.10 (default changed) :group 'mail-source :type 'boolean) @@ -567,10 +567,13 @@ If CONFIRM is non-nil, ask for confirmation before removing a file." (fileday (+ fileday (* low2days (nth 1 filetime))))) (setq files (cdr files)) (when (and (> (- currday fileday) diff) - (gnus-message 8 "File `%s' is older than %s day(s)" - bfile diff) - (or (not confirm) - (y-or-n-p (concat "Remove file `" bfile "'? ")))) + (if confirm + (y-or-n-p + (format "\ +Delete old (> %s day(s)) incoming mail file `%s'? " diff bfile)) + (gnus-message 8 "\ +Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) + t)) (delete-file ffile)))))) (defun mail-source-callback (callback info) |