info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a simple way to set up spam filtering?


From: Teemu Likonen
Subject: Re: Is there a simple way to set up spam filtering?
Date: Sat, 30 Jan 2016 21:16:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux)

Saša Janiška [2016-01-30 19:34:50+01] wrote:

> So, I'be very thankful if you can provide some help how to either use
> Gnus' spam package or your gnus-bogofilter package?

Here's a configuration example for my gnus-bogofilter.el. You can add
this code in your Gnus init file (gnus.el):

    ;; Load gnus-bogofilter.el package.
    (require 'gnus-bogofilter)

    (setq nnmail-split-methods 'nnmail-split-fancy
          nnmail-mail-splitting-decodes t
          nnmail-split-fancy
          '(| (: bogofilter-split "spam" "unsure")
              ;; You can add split rules here if you want to.
              "misc"))

You should also read the docs for nnmail-split-fancy variable so that
you understand how mail splitting works. The above configuration will
move detected incoming spam messages to group "spam", unsure messages to
group "unsure" and all good (ham) messages to group "misc".

In Gnus summary buffer you can use commands M-x bogofilter-register-spam
and M-x bogofilter-register-ham to train Bogofilter's database. Those
will register the current message (or all marked messages) for
Bogofilter. Command M-x bogofilter-check will display current message's
status and spam score. Also see the functions' documentation.

And that's pretty much it.

-- 
/// Teemu Likonen   - .-..   <https://github.com/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]