From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73607 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: SPAM in spam group is processed into that exact same group Date: Tue, 26 Oct 2010 09:04:13 +0200 Message-ID: <878w1lxwnm.fsf@thinkpad.tsdh.de> References: <87ocan4cis.fsf@thinkpad.tsdh.de> <87tykbj4of.fsf@thinkpad.tsdh.de> <87iq0q3xzx.fsf@lifelogs.com> <87tykaf37y.fsf@thinkpad.tsdh.de> <87fwvu2f9m.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288076673 7122 80.91.229.12 (26 Oct 2010 07:04:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2010 07:04:33 +0000 (UTC) Cc: ding@gnus.org To: Ted Zlatanov Original-X-From: ding-owner+M21976@lists.math.uh.edu Tue Oct 26 09:04:29 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PAda8-0000dJ-NL for ding-account@gmane.org; Tue, 26 Oct 2010 09:04:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PAdZz-0002ng-1y; Tue, 26 Oct 2010 02:04:19 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PAdZw-0002nM-Pv for ding@lists.math.uh.edu; Tue, 26 Oct 2010 02:04:16 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PAdZv-0000CQ-G4 for ding@lists.math.uh.edu; Tue, 26 Oct 2010 02:04:16 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PAdZu-0001Y9-00 for ; Tue, 26 Oct 2010 09:04:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 41E727800DDD; Tue, 26 Oct 2010 09:04:14 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05148-08-3; Tue, 26 Oct 2010 09:04:13 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 73AAF78012E2; Tue, 26 Oct 2010 09:04:13 +0200 (CEST) In-Reply-To: <87fwvu2f9m.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 25 Oct 2010 15:23:17 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73607 Archived-At: Ted Zlatanov writes: Hi Ted, > TH> Till now, I didn't try your patch, but I think that it is not the > TH> proper fix, because right now, all the correctly classified SPAM > TH> messages in my "real" spam group "nnimap+Fastmail:INBOX.Junk Mail" > TH> are moved to the spam training group > TH> "nnimap+Fastmail:INBOX.training.spam". Of course, in the training > TH> groups I only want to have the false positives and false > TH> negatives. > > I forgot (it's been a while): copy/move is separate from the > processors. s/spam exit processor/spam mover/ above. > > So we want to look at `spam-copy-or-move-routine' and not at the > processor routines. Oh, sorry for confusing that. So processors are something like bogofilter and friends, right? Ok, those have clearly to be run for any new mail. > TH> IMO, the proper way would be to invoke only the opposite processor > TH> of the groups' classification, that is, invoke the ham processor > TH> in groups classified as spam, and only the spam processor in ham > TH> (and unclassified) groups. Or do you know any usecase for > TH> invoking the spam processor in spam groups or the ham processor in > TH> ham groups? > > I think what you describe is already the case, but in any case is not > relevant to your problem, which is with the copy/move routine. > > I think the logic should be: > > 1) when (and (eq classification 'spam) > (spam-group-spam-contents-p gnus-newsgroup-name) > (spam-group-spam-contents-p target)) > -> message "Sorry, can't move spam from spam group A to spam group B" Sounds right. classification is the classification of the message, right? > 2) when (and (eq classification 'ham) > (spam-group-ham-contents-p gnus-newsgroup-name) > (spam-group-ham-contents-p target)) > -> message "Sorry, can't move ham from ham group A to ham group B" Yes. > 3) any other case, operate normally and actually do the moves Yes. Bye, Tassilo