Mercurial > emacs
diff lisp/mh-e/mh-junk.el @ 67988:7882fc7df359
* mh-alias.el (mh-alias-grab-from-field): Remove leading * from
docstring. Does this mean something in a defun?
* mh-customize.el (bw-new-face-to-old, bw-old-face-to-new): Checkdoc
fix.
* mh-e.el (mh-inc-folder): Rename maildrop-name argument to file so it
reads better in docstring and manual. Sync docstring with manual.
* mh-init.el (mh-defface-compat): Remove trailing space (checkdoc).
* mh-alias.el (mh-alias-apropos): Sync docstring with manual.
* mh-comp.el (mh-redistribute, mh-to-field, mh-to-fcc)
(mh-insert-auto-fields, mh-send-letter, mh-yank-cur-msg)
(mh-fully-kill-draft, mh-open-line, mh-letter-complete)
(mh-letter-complete-or-space, mh-letter-confirm-address)
(mh-letter-next-header-field-or-indent)
(mh-letter-previous-header-field): Ditto.
* mh-customize.el (mh-alias-completion-ignore-case-flag)
(mh-default-folder-for-message-function, mh-mml-method-default)
(mh-signature-file-name, mh-yank-behavior, mh-show-hook)
(mh-show-mode-hook) Ditto.
* mh-e.el (mh-refile-or-write-again, mh-toggle-showing): Ditto.
* mh-funcs.el (mh-pipe-msg, mh-sort-folder, mh-undo-folder)
(mh-store-msg, mh-store-buffer): Ditto
* mh-index.el (mh-index-search, mh-index-do-search)
(mh-index-next-folder, mh-index-sequenced-messages): Ditto.
* mh-junk.el (mh-spamassassin-blacklist): Ditto.
* mh-mime.el (mh-mh-compose-external-compressed-tar)
(mh-mh-compose-external-type, mh-mh-to-mime, mh-mh-to-mime-undo)
(mh-mml-secure-message-sign, mh-mml-secure-message-encrypt)
(mh-mml-secure-message-signencrypt): Ditto
* mh-pick.el (mh-search-folder): Ditto.
* mh-seq.el (mh-widen): Ditto.
* mh-utils.el (mh-show, mh-modify): Ditto.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Tue, 03 Jan 2006 06:13:43 +0000 |
parents | 9c3504ae6060 |
children | 03bac2d0a4aa |
line wrap: on
line diff
--- a/lisp/mh-e/mh-junk.el Tue Jan 03 03:36:49 2006 +0000 +++ b/lisp/mh-e/mh-junk.el Tue Jan 03 06:13:43 2006 +0000 @@ -1,6 +1,6 @@ ;;; mh-junk.el --- Interface to anti-spam measures -;; Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. +;; Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. ;; Author: Satyaki Das <satyaki@theforce.stanford.edu>, ;; Bill Wohler <wohler@newt.com> @@ -108,10 +108,12 @@ (defun mh-spamassassin-blacklist (msg) "Blacklist MSG with SpamAssassin. -SpamAssassin is one of the more popular spam filtering programs. Get -it from your local distribution or from http://spamassassin.org/. +SpamAssassin is one of the more popular spam filtering programs. +Get it from your local distribution or from +http://spamassassin.org/. -To use SpamAssassin, add the following recipes to \".procmailrc\": +To use SpamAssassin, add the following recipes to +\".procmailrc\": MAILDIR=$HOME/`mhparam Path` @@ -130,56 +132,59 @@ If you don't use \"spamc\", use \"spamassassin -P -a\". -Note that one of the recipes above throws away messages with a score -greater than or equal to 10. Here's how you can determine a value that -works best for you. +Note that one of the recipes above throws away messages with a +score greater than or equal to 10. Here's how you can determine a +value that works best for you. -First, run \"spamassassin -t\" on every mail message in your archive and -use Gnumeric to verify that the average plus the standard deviation of -good mail is under 5, the SpamAssassin default for \"spam\". +First, run \"spamassassin -t\" on every mail message in your +archive and use Gnumeric to verify that the average plus the +standard deviation of good mail is under 5, the SpamAssassin +default for \"spam\". -Using Gnumeric, sort the messages by score and view the messages with -the highest score. Determine the score which encompasses all of your -interesting messages and add a couple of points to be conservative. -Add that many dots to the \"X-Spam-Level:\" header field above to send -messages with that score down the drain. +Using Gnumeric, sort the messages by score and view the messages +with the highest score. Determine the score which encompasses all +of your interesting messages and add a couple of points to be +conservative. Add that many dots to the \"X-Spam-Level:\" header +field above to send messages with that score down the drain. -In the example above, messages with a score of 5-9 are set aside in -the \"+spam\" folder for later review. The major weakness of rules-based -filters is a plethora of false positives so it is worthwhile to check. +In the example above, messages with a score of 5-9 are set aside +in the \"+spam\" folder for later review. The major weakness of +rules-based filters is a plethora of false positives so it is +worthwhile to check. -If SpamAssassin classifies a message incorrectly, or is unsure, you -can use the MH-E commands \\[mh-junk-blacklist] and +If SpamAssassin classifies a message incorrectly, or is unsure, +you can use the MH-E commands \\[mh-junk-blacklist] and \\[mh-junk-whitelist]. -The \\[mh-junk-blacklist] command adds a \"blacklist_from\" entry to -\"~/spamassassin/user_prefs\", deletes the message, and sends the -message to the Razor, so that others might not see this spam. If the -\"sa-learn\" command is available, the message is also recategorized as -spam. +The command \\[mh-junk-blacklist] adds a \"blacklist_from\" entry +to \"~/spamassassin/user_prefs\", deletes the message, and sends +the message to the Razor, so that others might not see this spam. +If the \"sa-learn\" command is available, the message is also +recategorized as spam. -The \\[mh-junk-whitelist] command adds a \"whitelist_from\" rule to the -\"~/.spamassassin/user_prefs\" file. If the \"sa-learn\" command is -available, the message is also recategorized as ham. +The command \\[mh-junk-whitelist] adds a \"whitelist_from\" rule +to the \"~/.spamassassin/user_prefs\" file. If the \"sa-learn\" +command is available, the message is also recategorized as ham. Over time, you'll observe that the same host or domain occurs -repeatedly in the \"blacklist_from\" entries, so you might think that -you could avoid future spam by blacklisting all mail from a particular -domain. The utility function `mh-spamassassin-identify-spammers' helps -you do precisely that. This function displays a frequency count of the -hosts and domains in the \"blacklist_from\" entries from the last blank -line in \"~/.spamassassin/user_prefs\" to the end of the file. This +repeatedly in the \"blacklist_from\" entries, so you might think +that you could avoid future spam by blacklisting all mail from a +particular domain. The utility function +`mh-spamassassin-identify-spammers' helps you do precisely that. +This function displays a frequency count of the hosts and domains +in the \"blacklist_from\" entries from the last blank line in +\"~/.spamassassin/user_prefs\" to the end of the file. This information can be used so that you can replace multiple \"blacklist_from\" entries with a single wildcard entry such as: blacklist_from *@*amazingoffersdirect2u.com In versions of SpamAssassin (2.50 and on) that support a Bayesian -classifier, \\[mh-junk-blacklist] uses the \"sa-learn\" program to -recategorize the message as spam. Neither MH-E, nor SpamAssassin, -rebuilds the database after adding words, so you will need to run -\"sa-learn --rebuild\" periodically. This can be done by adding the -following to your crontab: +classifier, \\[mh-junk-blacklist] uses the program \"sa-learn\" +to recategorize the message as spam. Neither MH-E, nor +SpamAssassin, rebuilds the database after adding words, so you +will need to run \"sa-learn --rebuild\" periodically. This can be +done by adding the following to your crontab: 0 * * * * sa-learn --rebuild > /dev/null 2>&1" (unless mh-spamassassin-executable