From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57036 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Configuring spam.el: A few questions Date: Thu, 15 Apr 2004 15:54:01 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4n7jwhaug6.fsf@b2-25-3.bwh.harvard.edu> References: <4nvfkkvodw.fsf@lifelogs.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082058768 18957 80.91.224.253 (15 Apr 2004 19:52:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 15 Apr 2004 19:52:48 +0000 (UTC) Original-X-From: ding-owner+M5576@lists.math.uh.edu Thu Apr 15 21:52:41 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 1BECue-0003wc-00 for ; Thu, 15 Apr 2004 21:52:41 +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 1BECuQ-00011G-00; Thu, 15 Apr 2004 14:52:26 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BECuL-00011B-00 for ding@lists.math.uh.edu; Thu, 15 Apr 2004 14:52:21 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BECuK-0005Da-Lj for ding@lists.math.uh.edu; Thu, 15 Apr 2004 14:52:20 -0500 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id EE0B93A0035 for ; Thu, 15 Apr 2004 14:52:19 -0500 (CDT) Original-Received: from b2-25-3.bwh.harvard.edu (b2-25-3 [134.174.54.60]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id i3FJqI109640 for ; Thu, 15 Apr 2004 15:52:19 -0400 (EDT) Original-To: ding@gnus.org 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" Mail-Followup-To: ding@gnus.org In-Reply-To: (Jonas Steverud's message of "Sat, 03 Apr 2004 13:57:07 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57036 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57036 On Sat, 03 Apr 2004, tvrud@bredband.net wrote: > Ted Zlatanov writes: > >> On Wed, 31 Mar 2004, tvrud@bredband.net wrote: > [...] >>> As I've understood it, all spam marked mails will be moved to the >>> Spam-group due to the topic parameter above, but then? >> >> With a spam exit processor, the spam will also be processed before >> it's moved. Also, it will be marked expired. > > I.e. if I set > > nnfolder:Spam: > ((spam-contents gnus-group-spam-classification-spam) > (ham-marks > (gnus-ticked-mark))) > > And the Email topic: > ((spam-process-destination . nil) ;; Necessary at all? I would keep it, to make sure it is always nil (if spam-process-destination is set higher in the topic hierarchy it could override this one). > (spam-process > (gnus-group-spam-exit-processor-bogofilter))) > > And use spam-split in fancy-splitting to nnfolder:Spam I will have > the following setup: > > 1. Detected spam during splitting will end up in nnfolder:Spam > > 2. Undetected spam will be split as an ordinary email. > > I then start to read my mail and > > a. Spam in ordinary groups (e.g. nnfolder:Ding) will be marked with > M-d and then bogofilter will be trained on it upon exit. The spam > will be marked expired. Yes. > b. Emails in nnfolder:Spam will be considered spam unless I tick > 'em. Yes. > b1. Ticked emails are moved to ham-process-destination (which I will > set on topic level to my main mailbox) and bogofilter will be > trained on it as ham after adding > (ham-process (gnus-group-ham-exit-processor-bogofilter)) to > the > Email topic parameter. Exactly. > b2. Spam (i.e. all emails I do not tick) is ... now my understanding > starts to slip again. It is marked as expired by (spam-contents > gnus-group-spam-classification-spam), right? Is bogofilter > trained on it again? (Doesn't make sense but have to ask.) > (Will the emails in the Spam group have the $-sign > automagically? [Have to ask again.]) All the spam is processed by the spam processor, marked expired, and sent to the spam destination, regardless of the group classification. So the result is the same as if you had processed the spam in any other group with those parameters. This is only the case for spam; ham has different processing rules depending on the group classification. > If this is the case, I will "only" need to add the following to > .gnus and then I'm past the finish line, right? > > (setq gnus-registry-cache-file (concat gnus-dribble-directory > "gnus.registry.eld") > > spam-use-bogofilter t > spam-use-BBDB t ;; Whitelist > spam-log-to-registry t > > spam-mark-ham-unread-before-move-from-spam-group t > ) > > (spam-initialize) > (gnus-registry-initialize) > > I also need to add (: gnus-registry-split-fancy-with-parent) to the > split rules. I think that's it. > I quite don't understand the difference between the > (: gnus-registry-split-fancy-with-parent) and the > (: nnmail-split-fancy-with-parent). Anyone that cares to explain the > difference and/or the idea behind the registry? The registry is a way to keep track of articles by message ID, and to record in what groups that message ID has been seen. Tracking parent articles is done with the References header, which indicates the message IDs of parent articles. Article copies, moves, and deletions are tracked. The nnmail-split-fancy-with-parent method was the inspiration, and it's quite similar, but it's more limited because it only works for nnmail. > Unseen = all emails that for one reason or the other is nor shown in > the summary buffer, e.g. read emails. Or is there some other (Gnus > specific) terminology I've missed? "Unseen" are those articles you never saw before. "Unread" are those that are not marked read, expired, ticked, etc. I know this can be confusing... Hope that helps. Ted