From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/9721 Path: news.gmane.org!not-for-mail From: Dmitry Dzhus Newsgroups: gmane.emacs.gnus.user Subject: How to set up spam filtering with Bogofilter? Date: Mon, 01 Oct 2007 20:14:13 +0400 Message-ID: <87myv2n76y.fsf@sphinx.net.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1191281460 6484 80.91.229.12 (1 Oct 2007 23:31:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2007 23:31:00 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Oct 02 01:30:55 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IcUiz-0002eh-RH for gegu-info-gnus-english@m.gmane.org; Tue, 02 Oct 2007 01:30:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcUiv-0008KT-9B for gegu-info-gnus-english@m.gmane.org; Mon, 01 Oct 2007 19:30:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IcNxZ-0007RM-D9 for info-gnus-english@gnu.org; Mon, 01 Oct 2007 12:17:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IcNxX-0007Qk-TJ for info-gnus-english@gnu.org; Mon, 01 Oct 2007 12:17:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IcNxX-0007Qh-Oj for info-gnus-english@gnu.org; Mon, 01 Oct 2007 12:17:27 -0400 Original-Received: from sphinx.net.ru ([82.146.58.194]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IcNxX-0006hr-0n for info-gnus-english@gnu.org; Mon, 01 Oct 2007 12:17:27 -0400 Original-Received: from storm (89-178-12-72.broadband.corbina.ru [89.178.12.72]) (authenticated bits=0) by sphinx.net.ru (8.14.1/8.13.8) with ESMTP id l91GHLCV023279 for ; Mon, 1 Oct 2007 20:17:22 +0400 (MSD) (envelope-from mail@sphinx.net.ru) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) X-Detected-Kernel: FreeBSD 6.x (1) X-Mailman-Approved-At: Mon, 01 Oct 2007 19:30:46 -0400 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:9721 Archived-At: Greetings! What is a way to make Bogofilter installed on my machine help Gnus to sort out spam mail? I use a single nnimap mailbox called "INBOX" to read my mail. I've set `nnimap-split-fancy` according to the docs (parts of code stripped from customize section of my `.emacs.el`): (nnimap-split-rule (quote nnimap-split-fancy)) (nnimap-split-fancy (quote (| (: spam-split) "INBOX"))) And actually turned on splitting for "INBOX" group: (nnimap-split-inbox (quote ("INBOX"))) Group to put posiible spam into: (spam-split-group "spam") And I've pointed to Gnus to download message bodies so filter could process them: (nnimap-split-download-body t) I've also set `spam.el` to use bogofilter: (spam-use-bogofilter t) Now when I see a spam message in my "INBOX" I press `S x` and see the message marked as spam. When I quit the group I see Bogofilter processing marked messages (it really does as I manually checked bogofilter database file at `~/.bogofilter/wordlist.db`).=20 When I make Gnus check for new message in my "INBOX" folder, I also see Bogofilter processing downloaded message bodies, but still ALL SPAM gets in my "INBOX" without any splitting at all. And also checking =C2=ABspamacity=C2=BB score with `M x` gives the result of `0.5200= 000` regardless of message contents (even if I had marked it as spam some time before). Bogofilter's wordlist database is quite big. Seems that the problem might be connected with the fact that I use nnimap method to read my inbox. What could I also try to make Gnus work with Bogofilter properly? --=20 Happy Hacking. Dmitry "Sphinx" Dzhus http://sphinx.net.ru