diff options
| author | Glenn Morris | 2009-02-18 08:01:56 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-18 08:01:56 +0000 |
| commit | c925297d14645dfe9de89d9fd38da08b23b59734 (patch) | |
| tree | 8d8726408adf82d3f248ccd28362655d9a8d5c77 /lisp | |
| parent | 57a97b446f4dbac34c6f56b7f5271a7e6068801f (diff) | |
| download | emacs-c925297d14645dfe9de89d9fd38da08b23b59734.tar.gz emacs-c925297d14645dfe9de89d9fd38da08b23b59734.zip | |
(rmail-spam-filter): Show a message rather than the raw mbox while prompting.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mail/rmail-spam-filter.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/mail/rmail-spam-filter.el b/lisp/mail/rmail-spam-filter.el index 0b16965d9af..f6c2c819904 100644 --- a/lisp/mail/rmail-spam-filter.el +++ b/lisp/mail/rmail-spam-filter.el | |||
| @@ -329,13 +329,20 @@ it from rmail file. Called for each new message retrieved by | |||
| 329 | ;; and delete the spam msg if needed: | 329 | ;; and delete the spam msg if needed: |
| 330 | (let ((rmail-current-message msg) ; FIXME does this do anything? | 330 | (let ((rmail-current-message msg) ; FIXME does this do anything? |
| 331 | (action (cdr (assq 'action | 331 | (action (cdr (assq 'action |
| 332 | (nth num-element rsf-definitions-alist))))) | 332 | (nth num-element rsf-definitions-alist)))) |
| 333 | (newfile (not (file-exists-p rsf-file)))) | ||
| 333 | ;; Check action item in rsf-definitions-alist and do it. | 334 | ;; Check action item in rsf-definitions-alist and do it. |
| 334 | (cond | 335 | (cond |
| 335 | ((eq action 'output-and-delete) | 336 | ((eq action 'output-and-delete) |
| 336 | ;; FIXME the prompt to write a new file leaves the raw | 337 | ;; Else the prompt to write a new file leaves the raw |
| 337 | ;; mbox buffer visible. | 338 | ;; mbox buffer visible. |
| 339 | (and newfile | ||
| 340 | (rmail-show-message (rmail-first-unseen-message) 1)) | ||
| 338 | (rmail-output rsf-file) | 341 | (rmail-output rsf-file) |
| 342 | ;; Swap back, else rmail-get-new-mail-1 gets confused. | ||
| 343 | (when newfile | ||
| 344 | (rmail-swap-buffers-maybe) | ||
| 345 | (widen)) | ||
| 339 | ;; Don't delete if automatic deletion after output is on. | 346 | ;; Don't delete if automatic deletion after output is on. |
| 340 | (or rmail-delete-after-output (rmail-delete-message))) | 347 | (or rmail-delete-after-output (rmail-delete-message))) |
| 341 | ((eq action 'delete-spam) | 348 | ((eq action 'delete-spam) |