Function: mh-spamprobe-blocklist

mh-spamprobe-blocklist is an autoloaded and byte-compiled function defined in mh-junk.el.gz.

Signature

(mh-spamprobe-blocklist MSG)

Documentation

Blocklist MSG with SpamProbe.

SpamProbe is a Bayesian spam filtering program. Get it from your local distribution or from the SpamProbe web site at URL http://spamprobe.sourceforge.net.

To use SpamProbe, add the following recipes to ".procmailrc":

    PATH=$PATH:/usr/bin/mh
    MAILDIR=$HOME/`mhparam Path

    # Fight spam with SpamProbe.
    :0
    SCORE=| spamprobe receive

    :0 wf
    | formail -I "X-SpamProbe: $SCORE"

    :0:
    *^X-SpamProbe: SPAM
    spam/.

If SpamProbe classifies a message incorrectly, you can use the MH-E commands M-x mh-junk-blocklist (mh-junk-blocklist) and M-x mh-junk-allowlist (mh-junk-allowlist) to update SpamProbes training.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-junk.el.gz
;;;###mh-autoload
(defun mh-spamprobe-blocklist (msg)
  "Blocklist MSG with SpamProbe.

SpamProbe is a Bayesian spam filtering program. Get it from your
local distribution or from the SpamProbe web site at URL
`http://spamprobe.sourceforge.net'.

To use SpamProbe, add the following recipes to \".procmailrc\":

    PATH=$PATH:/usr/bin/mh
    MAILDIR=$HOME/`mhparam Path`

    # Fight spam with SpamProbe.
    :0
    SCORE=| spamprobe receive

    :0 wf
    | formail -I \"X-SpamProbe: $SCORE\"

    :0:
    *^X-SpamProbe: SPAM
    spam/.

If SpamProbe classifies a message incorrectly, you can use the
MH-E commands \\[mh-junk-blocklist] and \\[mh-junk-allowlist] to
update SpamProbe's training."
  (unless mh-spamprobe-executable
    (error "Unable to find the spamprobe executable"))
  (message "Blocklisting message %d with spamprobe..." msg)
  (let ((msg-file (mh-msg-filename msg mh-current-folder)))
    (mh-truncate-log-buffer)
    ;; Put call-process output in log buffer if we are saving it
    ;; (this happens if mh-junk-background is t).
    (with-current-buffer mh-log-buffer
      (call-process mh-spamprobe-executable msg-file mh-junk-background
                    nil "spam")
      (message "Blocklisting message %d with spamprobe...done" msg))))