From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60206 Path: news.gmane.org!not-for-mail From: Sebastian Luque Newsgroups: gmane.emacs.gnus.general Subject: Re: bogofilter setup examples Date: Wed, 27 Apr 2005 14:24:54 -0500 Message-ID: <878y34koop.fsf@mun.ca> References: <873btmif91.fsf@mun.ca> <4nwtqubt1b.fsf@lifelogs.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114630515 19012 80.91.229.2 (27 Apr 2005 19:35:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2005 19:35:15 +0000 (UTC) Original-X-From: ding-owner+M8734@lists.math.uh.edu Wed Apr 27 21:35:13 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQsIr-0005Nu-Um for ding-account@gmane.org; Wed, 27 Apr 2005 21:34:34 +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 1DQsBq-0000Uv-00; Wed, 27 Apr 2005 14:27:18 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DQsBf-0000Uf-00 for ding@lists.math.uh.edu; Wed, 27 Apr 2005 14:27:07 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DQsBb-00049m-KH for ding@lists.math.uh.edu; Wed, 27 Apr 2005 14:27:03 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DQsBZ-0003wV-00 for ; Wed, 27 Apr 2005 21:27:01 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DQs5D-000378-1q for ding@gnus.org; Wed, 27 Apr 2005 21:20:27 +0200 Original-Received: from s0106001111ddbc6e.wp.shawcable.net ([24.77.71.201]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Apr 2005 21:20:27 +0200 Original-Received: from sluque by s0106001111ddbc6e.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Apr 2005 21:20:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 84 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: s0106001111ddbc6e.wp.shawcable.net User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:Von/Q2RHsLrPx+mwkh/OCCcgOw0= X-Spam-Score: -4.8 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60206 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60206 Hi again, Thanks Jonas and Ted for your advise, I did make some progress by putting the following in my ~/.gnus.el: (require 'spam) (setq spam-split-group "Spam" spam-use-bogofilter t nnmail-split-methods 'nnmail-split-fancy nnmail-split-fancy '(| (: spam-split) ("from" "someregexp" "somegroup") (any ".*video4linux.*\\|.*Sympa\\|.*helixcommunity.*\\|.*aircanada.com.*\\|.*ostg.*" "Various") ("to" ".*ecolog-l.*" "Ecolog-L") ("to" ".*marmam.*" "Marmam") ("to" ".*mammal-l.*" "Mammal-L") ("from" ".*nature\\.com\\|.*source\\.cisti@.*\\|.*blackwell\\.synergy.*\\|.*CSIRO.*\\|.*@elsevier.*\\|.*oupjournals.*\\|.*cambridge\\.org\||.*cobjnls.*\\|.*springerlink.de" "Literature") "mail.misc")) (spam-initialize) For some unknown (to me) reason, using Ted's suggestion: (require 'spam) (spam-initialize 'spam-use-bogofilter) ... returned a "wrong number of arguments..." error for spam-initialize as gnus was starting up. Anyway, the setup above seems to be working somewhat fine for me. I don't understand, however, where (: spamp-split) needs to go in the nnmail-split-fancy list. I guess putting it at the beginning as I did splits the spam into my Spam group before doing the rest of my splitting rules, but perhaps it's better to put it right before "mail.misc". Another thing I had to do, although I would have preferred to put my own expressions in my ~/.gnus.el, was to 'G c' on the "mail.misc" group and set: - Group contents spam/ham classification: gnus-group-spam-classification-ham - Spam summary exit processor: Spam: Bogofilter Ham: Bogofilter - Destination for spam-processed articles at summary exit: nnmaildir:Spam - Spam-mark choices: gnus-spam-mark My intention was to declare "mail.misc" as containing ham, but that whenever I mark a message as spam ('S x'), it will be put in "Spam" and recorded by bogofilter for the future. Now, on the "Spam" group I did 'G c' and: - Group contents spam/ham classification: gnus-group-spam-classification-spam - Spam summary exit processor: Ham: Bogofilter - Destination for spam-processed articles at summary exit: nnmaildir:mail.misc - Spam-mark choices: gnus-spam-mark and my intention here was to be able to mark as ham any ham that may have been missclassified, send it to "mail.misc", and record it by bogofilter for the future. It seems to work fine, but some messages (particularly from ecolog-l) are sent to "Spam". Marking them as ham does send them back "mail.misc" (where I later redirect them by hand to "Ecolog-L"), but they don't seem to be recorded by bogofilter, as (some) future messages from this address still get put in "Spam". How does this look? Thanks a lot so far, -- Sebastian P. Luque