From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60196 Path: news.gmane.org!not-for-mail From: "Ted Zlatanov" Newsgroups: gmane.emacs.gnus.general Subject: Re: bogofilter setup examples Date: 22 Apr 2005 13:49:52 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <4nwtqubt1b.fsf@lifelogs.com> References: <873btmif91.fsf@mun.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114192067 11770 80.91.229.2 (22 Apr 2005 17:47:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 17:47:47 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M8724@lists.math.uh.edu Fri Apr 22 19:47:42 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DP2ED-0007ly-FK for ding-account@gmane.org; Fri, 22 Apr 2005 19:46:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DP2IB-0006OH-00; Fri, 22 Apr 2005 12:50:15 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DP2I5-0006OC-00 for ding@lists.math.uh.edu; Fri, 22 Apr 2005 12:50:09 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DP2Hu-0000lC-G2 for ding@lists.math.uh.edu; Fri, 22 Apr 2005 12:49:58 -0500 Original-Received: from clifford.bwh.harvard.edu ([134.174.9.41] helo=mail.bwh.harvard.edu) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DP2Ht-0006R4-00 for ; Fri, 22 Apr 2005 19:49:57 +0200 Original-Received: (qmail 17031 invoked from network); 22 Apr 2005 17:47:11 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: sluque@mun.ca, ding@gnus.org, Original-Received: from asimov.bwh.harvard.edu (HELO asimov) (internal?.8?user:?tzz@[134.174.8.118]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 22 Apr 2005 17:47:10 -0000 Mail-Followup-To: "Sebastian Luque" , ding@gnus.org Original-To: "Sebastian Luque" X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:20:050422:ding@gnus.org::uKPUHl5vvWFdtnBz:00006cko X-Hashcash: 1:20:050422:sluque@mun.ca::Q1NVZXDtjxSQvLz9:0000BlGI In-Reply-To: <873btmif91.fsf@mun.ca> (Sebastian Luque's message of "Tue, 19 Apr 2005 17:16:42 -0500") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on sysblade0.bwh.harvard.edu X-Spam-Status: No, score=-1.6 required=5.8 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60196 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60196 On Tue, 19 Apr 2005, sluque@mun.ca wrote: > Hello, I'm trying to set bogofilter (0.94.4) up with gnus 5.10.7 (Debian > package) in GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll > bars) of 2005-03-17 on trouble, modified by Debian. I've read the relevant > sections of the manual, but I'm having trouble understanding how I should > proceed. Can somebody please point to some source where I can find > examples? Besides Jonas' setup, you can look at the other spam.el-related posts, quite a few have complete configurations. You have to start with (require 'spam) (spam-initialize 'spam-use-bogofilter) ; plus whatever other backends ; you want to use, look in the manual (setq spam-split-group "spam") ; this is the default anyhow > I have all my incoming mail in different nnmaildir groups, and would like > to have bogofilter tag all the incoming mail and put it in a > nnmaildir:Spam group. You have to put (: spam-split) in your nnmail-split-fancy list. It will use whatever backends you provided to spam-initialize above. You can also specify a backend here, e.g. (: spam-split 'spam-use-BBDB) and even a spam group to override the default spam-split-group: (: spam-split 'spam-use-bogofilter "SPAM") so you can have different backends send spam to different places. > It also seems possible to manually mark messages as spam or ham from > within any group, and have gnus move the spam marked messages to the > spam group upon exit, or just leave it there if it's ham. Yes, the logic depends on whether the group is classified as a ham group, spam group, or neither (but basically, spam is always processed). You can change the classification of a group with `G c' as usual. There, you can also set the spam/ham exit processors and process destinations. Spam groups have the added distinction that all unseen articles are marked as spam when you enter the group. The spam/ham processor processes spam or ham when you exit the group. The process destination says what will happen to the spam or ham: it will be moved to a group or groups; it will stay and (if spam) be expired; or it will be respooled. All this is visible under `G c' as spam/ham process destination choices. > I understand it's also possible to use both actions to train > bogofilter and update its word database. Hopefully I can learn how > to do these things from an examples web page. Basically, when you quit a summary buffer, some spam.el-related hooks will be run to do what I describe above. So use `G c' to add spam-use-bogofilter to your spam/ham processors, and the exit hooks will do the right thing. If you need to use `G c' on many groups, consider using topics or the gnus-parameters variable, that will let you group settings together. By the way, I found bogofilter slow and its database got corrupted a lot when I tried it. Maybe it was just me, but I like the SpamAssassin database and speed much better for local spam processing. Plus, SA lets you talk to a remote server if needed. Ted