Mercurial > emacs
diff lisp/gnus/mail-source.el @ 80301:6bd4639256ce
(mail-source-delete-old-incoming-confirm): Change
default to nil.
(mail-source-delete-old-incoming): Make confirmation prompt more clear.
author | Reiner Steib <Reiner.Steib@gmx.de> |
---|---|
date | Sat, 08 Mar 2008 12:06:58 +0000 |
parents | 639e83cd103d |
children | 07ebd0fc42b8 |
line wrap: on
line diff
--- a/lisp/gnus/mail-source.el Fri Mar 07 17:34:48 2008 +0000 +++ b/lisp/gnus/mail-source.el Sat Mar 08 12:06:58 2008 +0000 @@ -286,11 +286,11 @@ (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) @@ -548,10 +548,13 @@ (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)