MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.218.164.141
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/mh-e/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/mh-e/mh-junk.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:38 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/mh-e/mh-junk.el
;;; in Emacs version 24.3.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\300\301!\210\300\302!\207" [require mh-e mh-scan] 2)
#@480 Blacklist RANGE as spam.

This command trains the spam program in use (see the option
`mh-junk-program') with the content of RANGE and then handles the
message(s) as specified by the option `mh-junk-disposition'.

Check the documentation of `mh-interactive-range' to see how RANGE is
read in interactive use.

For more information about using your particular spam fighting
program, see:

  - `mh-spamassassin-blacklist'
  - `mh-bogofilter-blacklist'
  - `mh-spamprobe-blacklist'
(defalias 'mh-junk-blacklist #[(range) "\306	\"A@\211\204\307\310!\210\204\311\202B\312\232\203!\313\202B\314H\315=\203-\202B\314H\316=\203?\f\317\320\311OQ\202B\313P\"\247\203\215\321\"\322\211#\203\267\"#\323\324#\"\210\nK#!\210\323\325#\"\210#$>\204w#$B$
\203\205\326\311\327
!\"\210\202\211\330\311!\210)\202\267\":\203\"@\247\203\"A\247\203\212\"@b\210\331 \210`\"AX\203\374m\204\374\332%!\203\366\333\322!#\323\324#\"\210\nK#!\210\323\325#\"\210#$>\204\343#$B$
\203\361\326\311\327
!\"\210\202\365\330\311!\210)\320y\210\202\252)\202\267\"\203\"9\203\334\"!\202\"\";\203 \335\f\"\"\202\"\"\336 &\211'\311#\211(\203P(@\211#)&*\337)\322*#\210*(A\211(\2042*\212eb\210\331 \210`dX\203\266m\204\266\332%!\203\260\333\322!+\340+&\"\203\257+#\323\324#\"\210\nK#!\210\323\325#\"\210#$>\204\234#$B$
\203\252\326\311\327
!\"\210\202\256\330\311!\210))\320y\210\202X+\341 *\207" [mh-junk-choice mh-junk-function-alist blacklist-func mh-junk-disposition mh-current-folder dest assoc error "Customize `mh-junk-program' appropriately" nil "" "+" 0 43 64 "/" 1 mh-goto-msg t message "Blacklisting message %d..." "Blacklisting message %d...done" mh-refile-a-msg intern mh-delete-a-msg beginning-of-line looking-at mh-get-msg-num mh-seq-to-msgs mh-translate-range make-hash-table puthash gethash mh-next-msg range msg mh-seen-list mh-scan-valid-regexp #1=#:seq-hash-table #2=#:msgs --dolist-tail-- #3=#:v #4=#:v v] 6 (#$ . 622) (list (mh-interactive-range "Blacklist"))])
#@297 Whitelist RANGE as ham.

This command reclassifies the RANGE as ham if it were incorrectly
classified as spam (see the option `mh-junk-program'). It then
refiles the message into the "+inbox" folder.

Check the documentation of `mh-interactive-range' to see how
RANGE is read in interactive use.
(defalias 'mh-junk-whitelist #[(range) "\306\307	\"8\211\204\310\311!\210\247\2038\312\313\211#\203\314\315\f\"\210\nK\f!\210\314\316\f\"\210\317\320\321
!\"\210)\202:\203\210@\247\203\210A\247\203\210\212@b\210\322 \210`AX\203\204m\204\204\323!\203~\324\313!\314\315\f\"\210\nK\f!\210\314\316\f\"\210\317\320\321
!\"\210)\325y\210\202Q)\202\203\2279\203\227\326!\202\245;\203\244\327\"\202\245\330 \211\320\211 \203\321 @\211!\"\331!\313\"#\210* A\211 \204\264*\212eb\210\322 \210`dX\203m\204\323!\203\324\313!#\332#\"\203#\314\315\f\"\210\nK\f!\210\314\316\f\"\210\317\320\321
!\"\210))\325y\210\202\331+\333 )\207" [mh-junk-choice mh-junk-function-alist whitelist-func range msg mh-inbox 2 assoc error "Customize `mh-junk-program' appropriately" mh-goto-msg t message "Whitelisting message %d..." "Whitelisting message %d...done" mh-refile-a-msg nil intern beginning-of-line looking-at mh-get-msg-num 1 mh-seq-to-msgs mh-translate-range make-hash-table puthash gethash mh-next-msg mh-scan-valid-regexp mh-current-folder #1=#:seq-hash-table #2=#:msgs --dolist-tail-- #3=#:v #4=#:v v] 5 (#$ . 2687) (list (mh-interactive-range "Whitelist"))])
(defvar mh-spamassassin-executable (executable-find "spamassassin"))
(defvar mh-sa-learn-executable (executable-find "sa-learn"))
#@3169 Blacklist MSG with SpamAssassin.

SpamAssassin is one of the more popular spam filtering programs.
Get it from your local distribution or from the SpamAssassin web
site at URL `http://spamassassin.org/'.

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

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

    # Fight spam with SpamAssassin.
    :0fw
    | spamc

    # Anything with a spam level of 10 or more is junked immediately.
    :0:
    * ^X-Spam-Level: ..........
    /dev/null

    :0:
    * ^X-Spam-Status: Yes
    spam/.

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.

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.

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
\[mh-junk-whitelist].

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 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
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 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
(defalias 'mh-spamassassin-blacklist #[(msg) "\204\306\307!\210	\310\n	\"\311\312\313\n\"\210\314 \210r&q\210\315\f'\311\316\317&\210(\203D\312\320\n\"\210\314 \210\315(\f'\311\321\322\323\324&\210)\312\325\n\"\210r\326)!q\210\327 \210\315\330*+\"\311\331\311\332\333\n\"
\334\335&\210eb\210\336\337\311\331#\203\203\340\341!\342\343\"\210\312\344\n\"\202\207\312\345\n\",\207" [mh-spamassassin-executable mh-current-folder msg sender msg-file current-folder error "Unable to find the spamassassin executable" mh-msg-filename nil message "Reporting message %d..." mh-truncate-log-buffer call-process "-r" "-R" "Recategorizing message %d as spam..." "--single" "--spam" "--local" "--no-rebuild" "Blacklisting sender of message %d..." get-buffer-create erase-buffer expand-file-name t format "%d" "-format" "%<(mymbox{from})%|%(addr{from})%>" search-forward-regexp "^\\(.+\\)$" match-string 0 mh-spamassassin-add-rule "blacklist_from" "Blacklisting sender of message %d...done" "Blacklisting sender of message %d...not done (from my address)" mh-log-buffer mh-junk-background mh-sa-learn-executable mh-temp-buffer mh-scan-prog mh-progs] 9 (#$ . 4343)])
#@276 Whitelist MSG with SpamAssassin.

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.

See `mh-spamassassin-blacklist' for more information.
(defalias 'mh-spamassassin-whitelist #[(msg) "\204\306\307!\210\310	\n\"\311!\312#r\313$!q\210\314 \210\315\316	\"\210\317#\320\312\321%\210
\2034\322
!\210\323#!\210%\203[\315\324	\"\210\325 \210r&q\210\317%#'\312\326\327\330\331&\210)\315\332	\"\210\333\334!\205k\334\335\336!!@\322\312!\210\f\203\200\f\337\232\204\200\340\341\f\"\210\315\342	\",\207" [mh-spamassassin-executable msg mh-current-folder mh-show-buffer from show-buffer error "Unable to find the spamassassin executable" mh-msg-filename get-buffer nil get-buffer-create erase-buffer message "Removing spamassassin markup from message %d..." call-process t "-d" kill-buffer write-file "Recategorizing message %d as ham..." mh-truncate-log-buffer "--single" "--ham" "--local" "--no-rebuild" "Whitelisting sender of message %d..." fboundp ietf-drums-parse-address mh-get-header-field "From:" "" mh-spamassassin-add-rule "whitelist_from" "Whitelisting sender of message %d...done" msg-file mh-temp-buffer mh-sa-learn-executable mh-log-buffer mh-junk-background] 9 (#$ . 8692)])
#@100 Add a new rule to "~/.spamassassin/user_prefs".
The name of the rule is RULE and its body is BODY.
(defalias 'mh-spamassassin-add-rule #[(rule body) "\306 \307\216\310\311	\n#\312\313\314!\315
!\316
!\210\317\310\320\"\321\312#\2048db\210n\2030\322\2021\323\261\210\324 \210?\205A\325\321!.\207" [#1=#:wconfig rule body line case-fold-search file current-window-configuration ((set-window-configuration #1#)) format "%s	%s\n" t expand-file-name "~/.spamassassin/user_prefs" find-buffer-visiting find-file search-forward "\n%s" nil "" "\n" save-buffer kill-buffer buffer-exists] 4 (#$ . 10038)])
#@399 Identify spammers who are repeat offenders.

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
(defalias 'mh-spamassassin-identify-spammers #[nil "\306\307!\310\311\312\"\313!\210dSb\210\314\315!\210\212\316\317\320\321#\203V\322\323!\320\324\325\326\"!A\211\203R\327@	\"@	\330\f\n\204E\331\202F\nT
#\210*A\211\2040*\202)\332 \210\333\334\335!!\210\336 \210\337\340	\"\210\341\323ed#\210\342ed\"\210eb*\207" [file domains value host #1=#:v #2=#:v expand-file-name "~/.spamassassin/user_prefs" make-hash-table :test equal find-file search-backward-regexp "^$" search-forward-regexp "^blacklist_from\\s-*\\(.*\\)@\\(.*\\)$" nil t match-string 2 reverse split-string "\\." gethash puthash 0 delete-other-windows pop-to-buffer get-buffer-create "*MH-E Spammer Frequencies*" erase-buffer maphash #[(key value) "\302V\205\f\303\304	#c\207" [value key 2 format "%s %s\n"] 4 ""] sort-numeric-fields reverse-region] 5 (#$ . 10656) nil])
(defvar mh-bogofilter-executable (executable-find "bogofilter"))
#@1371 Blacklist MSG with bogofilter.

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

Bogofilter is taught by running:

    bogofilter -n < good-message

on every good message, and

    bogofilter -s < spam-message

on every spam message. This is called a full training; three other
training methods are described in the FAQ that is distributed with
bogofilter. Note that most Bayesian filters need 1000 to 5000 of each
type of message to start doing a good job.

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

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

    # Fight spam with bogofilter.
    :0fw
    | bogofilter -3 -e -p

    :0:
    * ^X-Bogosity: Yes, tests=bogofilter
    spam/.

    :0:
    * ^X-Bogosity: Unsure, tests=bogofilter
    spam/unsure/.

If bogofilter classifies a message incorrectly, or is unsure, you can
use the MH-E commands \[mh-junk-blacklist] and \[mh-junk-whitelist]
to update bogofilter's training.

The "Bogofilter FAQ" suggests that you run the following
occasionally to shrink the database:

    bogoutil -d wordlist.db | bogoutil -l wordlist.db.new
    mv wordlist.db wordlist.db.prv
    mv wordlist.db.new wordlist.db

The "Bogofilter tuning HOWTO" describes how you can fine-tune Bogofilter.
(defalias 'mh-bogofilter-blacklist #[(msg) "\204\306\307!\210\310	\n\"\311 \210r\fq\210\312
\313\314%*\207" [mh-bogofilter-executable msg mh-current-folder msg-file mh-log-buffer mh-junk-background error "Unable to find the bogofilter executable" mh-msg-filename mh-truncate-log-buffer call-process nil "-s"] 6 (#$ . 11984)])
#@85 Whitelist MSG with bogofilter.

See `mh-bogofilter-blacklist' for more information.
(defalias 'mh-bogofilter-whitelist #[(msg) "\204\306\307!\210\310	\n\"\311 \210r\fq\210\312
\313\314%*\207" [mh-bogofilter-executable msg mh-current-folder msg-file mh-log-buffer mh-junk-background error "Unable to find the bogofilter executable" mh-msg-filename mh-truncate-log-buffer call-process nil "-n"] 6 (#$ . 13692)])
(defvar mh-spamprobe-executable (executable-find "spamprobe"))
#@635 Blacklist 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-blacklist] and \[mh-junk-whitelist] to
update SpamProbe's training.
(defalias 'mh-spamprobe-blacklist #[(msg) "\204\306\307!\210\310	\n\"\311 \210r\fq\210\312
\313\314%*\207" [mh-spamprobe-executable msg mh-current-folder msg-file mh-log-buffer mh-junk-background error "Unable to find the spamprobe executable" mh-msg-filename mh-truncate-log-buffer call-process nil "spam"] 6 (#$ . 14178)])
#@83 Whitelist MSG with SpamProbe.

See `mh-spamprobe-blacklist' for more information.
(defalias 'mh-spamprobe-whitelist #[(msg) "\204\306\307!\210\310	\n\"\311 \210r\fq\210\312
\313\314%*\207" [mh-spamprobe-executable msg mh-current-folder msg-file mh-log-buffer mh-junk-background error "Unable to find the spamprobe executable" mh-msg-filename mh-truncate-log-buffer call-process nil "good"] 6 (#$ . 15149)])
(provide 'mh-junk)

MMCT - 2023