(mail-source-delete-old-incoming-confirm): Change
authorReiner Steib <Reiner.Steib@gmx.de>
Sat, 8 Mar 2008 12:06:58 +0000 (12:06 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Sat, 8 Mar 2008 12:06:58 +0000 (12:06 +0000)
default to nil.
(mail-source-delete-old-incoming): Make confirmation prompt more clear.

lisp/gnus/ChangeLog
lisp/gnus/mail-source.el

index 37c9c73..455d0ef 100644 (file)
@@ -1,3 +1,9 @@
+2008-03-08  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * mail-source.el (mail-source-delete-old-incoming-confirm): Change
+       default to nil.
+       (mail-source-delete-old-incoming): Make confirmation prompt more clear.
+
 2008-03-05  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * gnus-sum.el (gnus-print-buffer): Honor ps-print-color-p.
index 4082f67..e0fbaff 100644 (file)
@@ -286,11 +286,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)
 
@@ -548,10 +548,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)