From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57933 Path: main.gmane.org!not-for-mail From: Jody Klymak Newsgroups: gmane.emacs.gnus.general Subject: Re: wallowing out of the spam quagmire Date: Mon, 21 Jun 2004 18:53:15 -0700 Organization: Ocean Mixing Group, Oregon State U. Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1087869199 14251 80.91.224.253 (22 Jun 2004 01:53:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Jun 2004 01:53:19 +0000 (UTC) Original-X-From: ding-owner+M6474@lists.math.uh.edu Tue Jun 22 03:53:13 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BcaTI-0007bF-00 for ; Tue, 22 Jun 2004 03:53:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BcaSx-0000kS-00; Mon, 21 Jun 2004 20:52:51 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BcaSp-0000kM-00 for ding@lists.math.uh.edu; Mon, 21 Jun 2004 20:52:43 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BcaSo-0004BD-KJ for ding@lists.math.uh.edu; Mon, 21 Jun 2004 20:52:42 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 785653A003A for ; Mon, 21 Jun 2004 20:52:41 -0500 (CDT) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BcaSm-0001jb-00 for ; Tue, 22 Jun 2004 03:52:40 +0200 Original-Received: from hornby.ucsd.edu ([132.239.127.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Jun 2004 03:52:40 +0200 Original-Received: from jklymak by hornby.ucsd.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Jun 2004 03:52:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 75 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hornby.ucsd.edu X-Face: )UPEGs@hZ!Z_j0LNZv0Uu\k writes: > In my world, this is quite `complex'. heh heh. I think it was simpler when I started and has kind of balooned. However, my setup still works.... > I've probably talked myself right into a hole but how can I set up > the simple system described above? Step 1: this goes in your .gnus.el: (setq nnimap-split-rule 'nnimap-split-fancy nnimap-split-inbox "INBOX" nnimap-split-fancy '(| (: spam-split) ;; For example (any ".*bbdb.*" "mail/ZIn.bbdb") ;; default mailbox "mail/Inbox.good") ) Step 2: - I do this with customize, but I suspect you can do it with setq-s. '(spam-bogofilter-path "/usr/local/bin/bogofilter") '(spam-junk-mailgroups (quote ("mail/junk"))) '(spam-process-ham-in-spam-groups t) '(spam-split-group "mail/junk") '(spam-use-bogofilter t) '(spam-use-bogofilter-headers nil) Step 3: Set parameters in mail/junk I think you need to go to group-customize to do this (G c on the group). I find this personally annoying and adds a layer of mystery to the whole thing. I think there is a way around it, but I'm not sure what it is. a) Check Group contents spam/ham classification to make it "spam" b) Set the Spam summary exit processor to "Ham: Bogofilter" - this will allow you to mark Ham in the spam group for training when you get a false positive. c) Choose a "Destination for ham articles" I just put them in my mail/Inbox.good. d) Set Ham mark choices - I use gnus-read-mark and gnus-ticked-mark. e) I set Expire wait to 2 days. You could also set this group to train on the spam, but bogofilter already knew it was spam, so that may be overtraining. This comes out in my groups parameters looking like: ((uidvalidity . "1074123432") (spam-contents gnus-group-spam-classification-spam) (spam-process ((ham spam-use-bogofilter))) (ham-process-destination "nnimap+opg1.ucsd.edu:mail/Inbox.good") (ham-marks (gnus-read-mark gnus-ticked-mark)) (expiry-wait . 2.0)) Let me know if this doesn't make sense. Note that I do this over IMAP, but bogofilter runs locally. It should, however, work with any backend. Cheers, Jody. -- Jody Klymak http://opg1.ucsd.edu/~jklymak/ mailto:jklymak@ucsd.edu