From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57917 Path: main.gmane.org!not-for-mail From: Jonas Steverud Newsgroups: gmane.emacs.gnus.general Subject: Re: wallowing out of the spam quagmire Date: Sun, 20 Jun 2004 08:58:07 +0200 Organization: The Deciples of Albericht Nibelungen 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 1087714917 5735 80.91.224.253 (20 Jun 2004 07:01:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Jun 2004 07:01:57 +0000 (UTC) Original-X-From: ding-owner+M6458@lists.math.uh.edu Sun Jun 20 09:01:48 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 1BbwKp-00072u-00 for ; Sun, 20 Jun 2004 09:01:47 +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 1BbwHM-00008J-00; Sun, 20 Jun 2004 01:58:12 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BbwHD-00008A-00 for ding@lists.math.uh.edu; Sun, 20 Jun 2004 01:58:03 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BbwHC-0000aW-HM for ding@lists.math.uh.edu; Sun, 20 Jun 2004 01:58:02 -0500 Original-Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by justine.libertine.org (Postfix) with ESMTP id BFDC73A0221 for ; Sun, 20 Jun 2004 01:57:55 -0500 (CDT) Original-Received: from c-9a5372d5.036-4-67626721.cust.bredbandsbolaget.se.bredband.net ([213.114.83.132] [213.114.83.132]) by mxfep01.bredband.com with ESMTP id <20040620065728.OSMC3131.mxfep01.bredband.com@c-9a5372d5.036-4-67626721.cust.bredbandsbolaget.se.bredband.net> for ; Sun, 20 Jun 2004 08:57:28 +0200 Original-To: ding@gnus.org Mail-Copies-To: never In-Reply-To: (Harry Putnam's message of "Sat, 19 Jun 2004 13:27:55 -0500") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (darwin) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57917 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57917 Harry Putnam writes: > Listening to various posts on that it seems have all the earmarks of > being a pain in the butt. Both yes and no. The problem is to understand how spam.el works. It is not complex, the documentation is simply not yet complete. Read it before you continue with this email. > 1) procmail/SpamAssassin based pre filtering (before gnus) I assume it places all spam in a specific group, lets for the discussion call it nnfolder:Spam. > 2) Inside gnus: Bogofilter based spam/ham database buiding tools. I have a specific group to where all my spam is splitted during fetching and all other groups are unclassified - it might be spam as well as ham in those groups, spam.el don't make an assumption. Any ham in the spam group (nnfolder:Spam) is marked by ! and upon exit it is respooled. I use bogofilter and I leave all encountered spam in the group it ends up in and let the expire process delete it. I would like to make Gnus delete it at once since I in some groups have a long expire-wait, 3-4 weeks. If this is possible or not, I don't know. I use Group Topics in the *Group* buffer. My set up: I have added (: spam-split) to the beginning of the nnmail-split-fancy variable and before it I have (: gnus-registry-split-fancy-with-parent). The group parameters I've added: On the top email topic (all email groups are below this one): ((comment (spam-contents gnus-group-spam-classification-ham)) (spam-process ((spam spam-use-bogofilter) (ham spam-use-bogofilter))) (spam-process-destination) ;; No process destination! (comment (ham-marks (gnus-del-mark gnus-read-mark gnus-killed-mark gnus-kill-file-mark gnus-low-score-mark gnus-expirable-mark gnus-ancient-mark)))) The two commented lines are nice when you train bogofilter the first time. Just enter each non-spam group and then exit and bogofilter will train on all as ham. Delete or comment away afterwards. On my spam group, i.e. nnfolder:Spam, I have added: ((expiry-wait . immediate) (ham-process-destination respool) (spam-contents gnus-group-spam-classification-spam) (ham-marks (gnus-ticked-mark))) Expire at once, respool all found ham, all ticked articles are ham and everything else is spam. And finally, my .emacs: (setq spam-split-group "Spam" ; Important that "nnfolder:" is *NOT* included! spam-use-bogofilter t spam-use-BBDB t ;; Use BBDB as a whitelist spam-log-to-registry t spam-mark-ham-unread-before-move-from-spam-group t spam-move-spam-nonspam-groups-only nil ; No moving at all. spam-disable-spam-split-during-ham-respool t ) (spam-initialize) ;; Loads the spam.el package etc. (gnus-registry-initialize) I think that's it. You might be interested in the autodetection mechanism, that way it tries to detect spam in groups you enter, but this is not necessary since you use spamassassin and probably will use spam-split. It might be a nice idea if you read USENET. HTH! -- ( http://hem.bredband.net/steverud/ ! Wei Wu Wei ) ( Meaning of U2 Lyrics, Roleplaying ! To Do Without Do )