diff options
| author | Reiner Steib | 2008-03-08 12:06:58 +0000 |
|---|---|---|
| committer | Reiner Steib | 2008-03-08 12:06:58 +0000 |
| commit | d59cff5af2f1ea3d43ee8a9592ef52d3d1c19871 (patch) | |
| tree | 729dcd922094d42785db1b4077273fcf33915957 | |
| parent | 48d6e8e3922d17af02b8d35c371df5422f024958 (diff) | |
| download | emacs-d59cff5af2f1ea3d43ee8a9592ef52d3d1c19871.tar.gz emacs-d59cff5af2f1ea3d43ee8a9592ef52d3d1c19871.zip | |
(mail-source-delete-old-incoming-confirm): Change
default to nil.
(mail-source-delete-old-incoming): Make confirmation prompt more clear.
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/mail-source.el | 17 |
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 37c9c73bf73..455d0efd788 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-03-08 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 2 | |||
| 3 | * mail-source.el (mail-source-delete-old-incoming-confirm): Change | ||
| 4 | default to nil. | ||
| 5 | (mail-source-delete-old-incoming): Make confirmation prompt more clear. | ||
| 6 | |||
| 1 | 2008-03-05 Reiner Steib <Reiner.Steib@gmx.de> | 7 | 2008-03-05 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 8 | ||
| 3 | * gnus-sum.el (gnus-print-buffer): Honor ps-print-color-p. | 9 | * gnus-sum.el (gnus-print-buffer): Honor ps-print-color-p. |
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index 4082f6761f1..e0fbaff66e2 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -286,11 +286,11 @@ You may also set this variable to nil and call | |||
| 286 | (const :tag "never" nil) | 286 | (const :tag "never" nil) |
| 287 | (integer :tag "days"))) | 287 | (integer :tag "days"))) |
| 288 | 288 | ||
| 289 | (defcustom mail-source-delete-old-incoming-confirm t | 289 | (defcustom mail-source-delete-old-incoming-confirm nil |
| 290 | "*If non-nil, ask for confirmation before deleting old incoming files. | 290 | "If non-nil, ask for confirmation before deleting old incoming files. |
| 291 | This variable only applies when `mail-source-delete-incoming' is a positive | 291 | This variable only applies when `mail-source-delete-incoming' is a positive |
| 292 | number." | 292 | number." |
| 293 | :version "22.1" | 293 | :version "22.2" ;; No Gnus / Gnus 5.10.10 (default changed) |
| 294 | :group 'mail-source | 294 | :group 'mail-source |
| 295 | :type 'boolean) | 295 | :type 'boolean) |
| 296 | 296 | ||
| @@ -548,10 +548,13 @@ If CONFIRM is non-nil, ask for confirmation before removing a file." | |||
| 548 | (fileday (+ fileday (* low2days (nth 1 filetime))))) | 548 | (fileday (+ fileday (* low2days (nth 1 filetime))))) |
| 549 | (setq files (cdr files)) | 549 | (setq files (cdr files)) |
| 550 | (when (and (> (- currday fileday) diff) | 550 | (when (and (> (- currday fileday) diff) |
| 551 | (gnus-message 8 "File `%s' is older than %s day(s)" | 551 | (if confirm |
| 552 | bfile diff) | 552 | (y-or-n-p |
| 553 | (or (not confirm) | 553 | (format "\ |
| 554 | (y-or-n-p (concat "Remove file `" bfile "'? ")))) | 554 | Delete old (> %s day(s)) incoming mail file `%s'? " diff bfile)) |
| 555 | (gnus-message 8 "\ | ||
| 556 | Deleting old (> %s day(s)) incoming mail file `%s'." diff bfile) | ||
| 557 | t)) | ||
| 555 | (delete-file ffile)))))) | 558 | (delete-file ffile)))))) |
| 556 | 559 | ||
| 557 | (defun mail-source-callback (callback info) | 560 | (defun mail-source-callback (callback info) |