Next: SpamAssassin back end, Previous: Regular Expressions Header Matching, Up: Spam Back Ends [Contents][Index]

#### 9.17.6.7 Bogofilter

Variable: spam-use-bogofilter

  Set this variable if you want `spam-split` to use Eric Raymond’s speedy Bogofilter.

  With a minimum of care for associating the ‘`$`’ mark for spam articles only, Bogofilter training all gets fairly automatic. You should do this until you get a few hundreds of articles in each category, spam or not. The command `S t` in summary mode, either for debugging or for curiosity, shows the spamicity score of the current article (between 0.0 and 1.0).

  Bogofilter determines if a message is spam based on a specific threshold. That threshold can be customized, consult the Bogofilter documentation.

  If the `bogofilter` executable is not in your path, Bogofilter processing will be turned off.

  You should not enable this if you use `spam-use-bogofilter-headers`.

`M s t`
`S t`

  Get the Bogofilter spamicity score (`spam-bogofilter-score`).

Variable: spam-use-bogofilter-headers

  Set this variable if you want `spam-split` to use Eric Raymond’s speedy Bogofilter, looking only at the message headers. It works similarly to `spam-use-bogofilter`, but the `X-Bogosity` header must be in the message already. Normally you would do this with a procmail recipe or something similar; consult the Bogofilter installation documents for details.

  You should not enable this if you use `spam-use-bogofilter`.

Variable: gnus-group-spam-exit-processor-bogofilter

  Add this symbol to a group’s `spam-process` parameter by customizing the group parameters or the `gnus-spam-process-newsgroups` variable. When this symbol is added to a group’s `spam-process` parameter, spam-marked articles will be added to the Bogofilter spam database.

  WARNING

  Instead of the obsolete `gnus-group-spam-exit-processor-bogofilter`, it is recommended that you use `(spam spam-use-bogofilter)`. Everything will work the same way, we promise.

Variable: gnus-group-ham-exit-processor-bogofilter

  Add this symbol to a group’s `spam-process` parameter by customizing the group parameters or the `gnus-spam-process-newsgroups` variable. When this symbol is added to a group’s `spam-process` parameter, the ham-marked articles in ham groups will be added to the Bogofilter database of non-spam messages.

  WARNING

  Instead of the obsolete `gnus-group-ham-exit-processor-bogofilter`, it is recommended that you use `(ham spam-use-bogofilter)`. Everything will work the same way, we promise.

Variable: spam-bogofilter-database-directory

  This is the directory where Bogofilter will store its databases. It is not specified by default, so Bogofilter will use its own default database directory.

The Bogofilter mail classifier is similar to `ifile` in intent and purpose. A ham and a spam processor are provided, plus the `spam-use-bogofilter` and `spam-use-bogofilter-headers` variables to indicate to spam-split that Bogofilter should either be used, or has already been used on the article. The 0.9.2.1 version of Bogofilter was used to test this functionality.

Next: SpamAssassin back end, Previous: Regular Expressions Header Matching, Up: Spam Back Ends [Contents][Index]