From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56857 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Configuring spam.el: A few questions Date: Wed, 31 Mar 2004 13:54:03 -0500 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: <4nvfkkvodw.fsf@lifelogs.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080760159 26080 80.91.224.253 (31 Mar 2004 19:09:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 Mar 2004 19:09:19 +0000 (UTC) Original-X-From: ding-owner+M5396@lists.math.uh.edu Wed Mar 31 21:09:10 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 1B8l5K-0002zy-00 for ; Wed, 31 Mar 2004 21:09:10 +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 1B8l4R-00051w-00; Wed, 31 Mar 2004 13:08:15 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1B8l4J-00051q-00 for ding@lists.math.uh.edu; Wed, 31 Mar 2004 13:08:07 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1B8l4G-0006Kw-Vy for ding@lists.math.uh.edu; Wed, 31 Mar 2004 13:08:05 -0600 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id 644D83A0058 for ; Wed, 31 Mar 2004 13:08:03 -0600 (CST) Original-Received: from asimov (asimov [134.174.9.63]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id i2VJ64l14319 for ; Wed, 31 Mar 2004 14:06:06 -0500 (EST) 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 "Wed, 31 Mar 2004 11:05:35 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-Spam-Score: -4.9 (----) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56857 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56857 On Wed, 31 Mar 2004, tvrud@bredband.net wrote: > Hello. I'm still working on my spam.el config and there are a few > topic I have some difficulties to understand (I don't want to do > 'trial and error' since loosing emails are not an option): > > I have a set up of a lot of nnfolders and one is the spam group, > nnfolder:Spam. I want all spam found during splitting to end up in > this group: > > At the top topic ('Email') I have the topic property: > ((spam-process-destination . "nnfolder:Spam")) > > The Spam-group is part of this topic. OK, that's fine. > I want all spam I detect in the other groups to be marked as spam > (i.e. I will set the spam mark) and then it should be sent to > bogofilter and then deleted. OK. At the top level, you also want to make bogofilter the spam exit processor then. > 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 enter the group every now and then. But I don't quite understand > how I tell spam.el to train bogofilter on the content of > nnfolder:Spam. What I'm slightly afraid of is that Gnus ends up in > an infinite loop and moves the content of nnfolder:Spam to the > nnfolder:Spam folder. Since the mail in the Spam folder is marked as expired, you'll be OK. You can remove the contents of the Spam folder periodically if you want to. > I assume I have to set spam-move-spam-nonspam-groups-only to t to > prevent this, right? No, this is not necessary, but you can use it if you like. > If I've understood it correctly, if I set the group parameters of > nnfolder:Spam to > ((spam-contents gnus-group-spam-classification-spam)) > everything will work as expected, i.e. bogofilter is trained on the > contents of nnfolder:Spam and the content is not moved anywhere, > right? What that parameter does is mark all UNSEEN articles in the Spam group as spam when you enter the Spam group. So if you have an external agent that puts articles in Spam, that's one way to quickly catch and process those articles every time you visit the Spam group. > There are two potential scenarios that I would find acceptable: > > 1. Any found spam is moved to nnfolder:Spam and then trained when I > enter and exit that group and then deleted. > > 2. Any found spam during splitting goes to nnfolder:Spam and it is > treated as above. Any spam I find in any other group which I mark > as spam (with gnus-summary-mark-as-spam) is then processed by > bogofilter as spam and then deleted. I.e. never moved to any > other group. I recommend to use a "Spam" and a "Train" folder since above you're trying to use the "Spam" folder as both - see my example setup in the manual and that may give you some ideas. There is no single way to do spam filtering, spam.el is very flexible in what it allows. Both 1 and 2 above are possible with the right spam process destination and spam exit processor. Remember that a nil spam process destination means the spam articles are left in place and marked as expired - that should make (2) pretty easy. Ted