From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54677 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.gnus.general Subject: Re: How to use the spam.el package? Date: Tue, 04 Nov 2003 21:39:39 +0000 Sender: ding-owner@lists.math.uh.edu Message-ID: <87ptg724pw.fsf@emptyhost.emptydomain.de> References: <87brrv269g.fsf@emptyhost.emptydomain.de> <4nptg947ta.fsf@lockgroove.bwh.harvard.edu> <87u15lryfb.fsf@emptyhost.emptydomain.de> <4nu15l175o.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067982066 21097 80.91.224.253 (4 Nov 2003 21:41:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2003 21:41:06 +0000 (UTC) Original-X-From: ding-owner+M3218@lists.math.uh.edu Tue Nov 04 22:41:04 2003 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 1AH8v9-0005BW-00 for ; Tue, 04 Nov 2003 22:41:04 +0100 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 1AH8uC-00035b-00; Tue, 04 Nov 2003 15:40:04 -0600 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AH8u3-00035R-00 for ding@lists.math.uh.edu; Tue, 04 Nov 2003 15:39:56 -0600 Original-Received: from mail.emptydomain.de (213-203-244-156.kunde.vdserver.de [213.203.244.156]) by justine.libertine.org (Postfix) with ESMTP id 59EF23A004F for ; Tue, 4 Nov 2003 15:39:53 -0600 (CST) Original-Received: by mail.emptydomain.de (Postfix, from userid 1000) id 621181B83B; Tue, 4 Nov 2003 21:39:39 +0000 (UTC) Original-To: ding@gnus.org In-Reply-To: <4nu15l175o.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Mon, 03 Nov 2003 16:20:03 -0500") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54677 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54677 Ted Zlatanov writes: > On Mon, 03 Nov 2003, kai@emptydomain.de wrote: >> >> Well, spam is being processed by Bogofilter in my case. Or, put >> another way, the processing I do on spam is to move it to >> INBOX.spam. > > OK, how would you suggest I change the docs and/or implementation? I > understand the problem, I'm just not sure how I can fix it. I think it's better to change the docs. The behavior makes sense: moving spam to a destination group is something that can be done in addition to other processing. (The alternative would be to provide a list of actions, such that moving to another group could be part of it. But that would make the configuration more complex for no apparent gain.) Maybe you could extend the description of M-d. Perhaps like this: Marking a message as spam means that Gnus might do two things with it. First, it can analyze the message (we call it "spam processing"), and secondly it can move the message to another group (which is called the "process destination"). Read on for more on spam processing and process destinations. Further down, it says "you have to collect your spam in one or more spam groups, and set spam-junk-mailgroups appropriately". The following questions come up when you're naive: How to collect the spam in spam groups? Of course, the answer is by hitting M-d and then relying on the process destination to do the collecting. But the docs don't say :-) And secondly, why do I *have* to set spam-junk-mailgroups? Isn't it enough to just process the spam? How does spam-junk-mailgroups come in? Why do I need a group where all new articles get the spam mark automatically? Say I use the black/whitelist thing. Then why is it not sufficient to just blacklist the sender, then delete the spam? I also mentioned a tutorial-type example. It seems that you use spam.el in the "normal" way, in the way that spam.el was intended to be used. So how about you describe your setup, explaining what each configuration item does? Something along these lines: I set nnmail-split-fancy like this: .... This invokes spam-split which puts spam into a specific group. This group is specified by the spam-split-group variable. I have (setq spam-split-group "incoming-spam"), so spam-split will put spam into the nnml:incoming-spam group. From time to time, I enter that group to check whether messages in that group are really spam. If I encounter any ham, I hit M-u on it. When exiting the group, the spam from nnml:incoming-spam is moved to nnml:train-spam and the ham is moved to nnml:train-ham. I do this by setting the group parameter spam-process-destination to nnml:train-spam and ham-process-destination to nnml:train-ham. I then use nnml:train-spam and nnml:train-ham for bogofilter training. I set the spam-processor group parameter for nnml:train-spam to gnus-group-spam-exit-processor-bogofilter, and for the group nnml:train-ham I set the ham-processor group parameter to gnus-group-ham-exit-processor-bogofilter. After being processed by bogofilter, spam from nnml:train-spam will be deleted because of the foo setting. (Ed. note: which setting?) And ham from nnml:train-ham will be moved to nnml:mail.misc because I set the group parameter ham-process-destination on nnml:train-ham accordingly. In the above description, I tried to guess what your, Ted's, setup might be. I'm sure it's wrong. But maybe you get the idea of what I mean by showing the connection. In fact, I think that lengthy paragraph is still too difficult to understand to see the big picture. Hm. We need a summary explaining just what happens. Maybe a drawing would be nice? But I'm really bad at drawing... So, maybe the above should be split into a description what happens and then a description of the settings that are needed to make it happen. WDYT? I could also describe my setup, but I'm afraid that's not really typical. After all, I try to make it server-based, and I guess most users don't have their own server. Kai