Function: spam-wash
spam-wash is an interactive and byte-compiled function defined in
spam-wash.el.gz.
Signature
(spam-wash)
Documentation
Treat the current buffer prior to spam analysis.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/spam-wash.el.gz
(defun spam-wash ()
"Treat the current buffer prior to spam analysis."
(interactive)
(run-hooks 'gnus-article-decode-hook)
(save-excursion
(save-restriction
(let* ((buffer-read-only nil)
(gnus-inhibit-treatment t)
(gnus-article-buffer (current-buffer))
(handles (or (mm-dissect-buffer nil gnus-article-loose-mime)
(and gnus-article-emulate-mime
(mm-uu-dissect))))
) ;; handle
(when gnus-article-mime-handles
(mm-destroy-parts gnus-article-mime-handles)
(setq gnus-article-mime-handle-alist nil))
(setq gnus-article-mime-handles handles)
(when (and handles
(or (not (stringp (car handles)))
(cdr handles)))
(article-goto-body)
(delete-region (point) (point-max))
(spam-treat-parts handles))))))