BOGOFILTER(1) Bogofilter Reference Manual BOGOFILTER(1) (NAME) bogofilter - (SYNOPSIS) bogofilter [help options | classification options | registration options | parameter options | info options] [general options] [config file options] (help options) : [-h] [--help] [-V] [-Q] (classification options) : [-p] [-e] [-t] [-T] [-u] [-H] [-M] [-b] [-B object ...] [-R] [general options] [parameter options] [config file options] (registration options) : [-s | -n] [-S | -N] [general options] (general options) : [-c filename] [-C] [-d dir] [-k cachesize] [-l] [-L tag] [-I filename] [-O filename] (parameter options) : [-E value[,value]] [-m value[,value][,value]] [-o value[,value]] (info options) : [-v] [-y date] [-D] [-x flags] (config file options) : [--option=value] : bogofilter --help . (DESCRIPTION) Bogofilter () . <<>> () <<>> () . Bogofilter Berkeley DB C . (THEORY OF OPERATION) Bogofilter ( ) . (wordlist) (ham) (spam) . . (spam) (ham). (pattern-matching) . (Paul Graham) A Plan For Spam[1] . . Bogofilter MIME HTML . (hostnames) IP . MTA (message-IDs) . (header) . (Gary Robinson) ( robx robs ). Spam Detection[2] . ( Linux Journal A Statistical Approach to the Spam Problem[3] ) (Fisher's method) . [4] (ESF - effective size factors) . : << >> (inverse chi-square function) . (null hypothesis) . ( / hammish) ( / spammish) . . ( ). (bogosity) . . . (tristate) bogofilter (unsure) (spam) (ham) . (two-state) . : robx: . robx . robs: robx robx . min-dev: . . . . spam-cutoff: (spam) . ham-cutoff: spam-cutoff spam-cutoff (ham) () . ham-cutoff ham-cutoff spam-cutoff (unsure) () . sp-esf: (ESF) (spam). ns-esf: (ESF) (nonspam). ESF . ESF . bogotune . (OPTIONS) (HELP OPTIONS) -h . -V . -Q ( / query) bogofilter bogofilter . (CLASSIFICATION OPTIONS) -p ( / passthrough) X-Bogosity . stdin ( ) . (rewind) bogofilter . -e ( / embed) bogofilter ( ) . bogofilter (spam) (ham) (unsure) bogofilter procmail maildrop . -t ( / terse) bogofilter . <> <> <> . : . -T . bogofilter . <> <> <> . -TT . Bogofilter . -u bogofilter . (spamlist) (goodlist) . <<>> (unsure) . bogofilter -s -n ( ) . bogofilter -Sn -Ns . I/O . -H bogofilter . . -M bogofilter mbox . -v -t . -b ( / streaming bulk mode) bogofilter stdin . -v -t bogofilter . -B . maildir ( ) maildir -M - mbox . ( Content-Length: .) mbox bogofilter . formail -es . -B object ... ( / bulk mode) bogofilter . ( ) ( ) ( maildir MH) . -v -t bogofilter . -b stdin . -R bogofilter R (R data frame) . R . (REGISTRATION OPTIONS) -s bogofilter (spam) . . -n bogofilter (non-spam) . Bogofilter . . . -S -N . -S bogofilter (undo) . -s -u -Sn . -S . -N bogofilter . -n -u -Ns . -N . (GENERAL OPTIONS) -c filename bogofilter . -C bogofilter . -d dir . (ENVIRONMENT) . -k cachesize () BerkeleyDB ( ) . bogofilter . . bogotune ( tuning) . -l bogofilter (system log) . bogofilter . -L tag -l %l . -l . -I filename bogofilter stdin . -O filename bogofilter (passthrough) . -p . (PARAMETER OPTIONS) -E value[,value] sp-esf ns-esf . sp-esf ns-esf . . -m value[,value][,value] min-dev robs robx . min-dev robs robx . . -o value[,value] spam-cutoff ham-cutoff . spam-cutoff ham-cutoff . . : . () . . . . (INFO OPTIONS) -v bogofilter . v . -vv . . -y date . (0) . -D (debug) . -x flags . debug.h . (CONFIG FILE OPTIONS) longopt -- name=value --option=value . bogofilter --help bogofilter.cf.example . X-Bogosity "X-Spam-Header" : --spam-header-name=X-Spam-Header (ENVIRONMENT) Bogofilter . bogofilter BOGOFILTER_DIR . -d dir (override) . bogofilter $HOME/.bogofilter . (CONFIGURATION) bogofilter bogofilter . /etc/bogofilter/bogofilter.cf . /etc/bogofilter/bogofilter.cf.example . . (EXIT STATUS) (spam) (non-spam) (unsure) / (I/O) . -p -e : / . bogofilter -p . (INTEGRATION WITH OTHER TOOLS) procmail (recipe) () bogofilter () () . ( -Ns -Sn) bogofilter . # bogofilter Ham Spam Unsure # (wordlist) :0fw | bogofilter -u -e -p # bogofilter # MTA # EX_TEMPFAIL /usr/include/sysexits.h :0e { EXITCODE=75 HOST } # spam-bogofilter :0: * ^X-Bogosity: Spam, tests=bogofilter spam-bogofilter # unsure-bogofilter # :0: * ^X-Bogosity: Unsure, tests=bogofilter unsure-bogofilter # bogofilter # . unsure # ham ( spam) # bogofilter . procmail stdin bogofilter spam : :0HB: * ? bogofilter spam bogofilter : :0HB: * ? bogofilter -u spam bogofilter ( ) . maildrop xfilter ~/.mailfilter : xfilter "bogofilter -u -e -p" if (/^X-Bogosity: Spam, tests=bogofilter/) { to "spam-bogofilter" } .muttrc mutt bogofilter . macro index d "unset wait_key\n\ bogofilter -n\n\ set wait_key\n\ " "delete message as non-spam" macro index \ed "unset wait_key\n\ bogofilter -s\n\ set wait_key\n\ " "delete message as spam" (MTA) 1. bogofilter MTA . MTA : 2. bogofilter 3. bogofilter . bogofilter . 4. MTA bogofilter . MTA -p -u -e . 5. / . (alias) (bounce) . 6. doc contrib . R bogofilter -R bogofilter R . . <<>> <<>> <<>> <<>> f(w) (1 - f(w)) f(w) (+ f(w) . - ) . ( + ) P Q S s x . R R ( R R[5] ). bogofilter R ( bogo.R) bogofilter . . (LOG MESSAGES) Bogofilter -l . . ( ): bogofilter[1412]: X-Bogosity: Ham, spamicity=0.000227 bogofilter[1415]: X-Bogosity: Spam, spamicity=0.998918 -u ( ): bogofilter[1426]: X-Bogosity: Spam, spamicity=0.998918, register -s, 329 words, 1 messages (-l -s -n -S -N) : bogofilter[1440]: register-n, 255 words, 1 messages ( -s -n -N -S) : bogofilter[17330]: register-n, 574 words, 3 messages bogofilter[6244]: register-s, 1273 words, 4 messages (FILES) /etc/bogofilter/bogofilter.cf . ~/.bogofilter.cf . ~/.bogofilter/wordlist.db . (AUTHORS) Eric S. Raymond . David Relson . Matthias Andree . Greg Louis . bogofilter[6] . (SEE ALSO) bogolexer(1), bogotune(1), bogoupgrade(1), bogoutil(1) (NOTES) 1. A Plan For Spam http://www.paulgraham.com/spam.html 2. Spam Detection http://radio- weblogs.com/0101454/stories/2002/09/16/spamDetection.html 3. A Statistical Approach to the Spam Problem http://www.linuxjournal.com/article/6467 4. Another improvement http://www.garyrobinson.net/2004/04/improved%5fchi.html 5. the R project website http://cran.r-project.org 6. bogofilter project page http://bogofilter.sourceforge.net Bogofilter 05/19/2019 BOGOFILTER(1)