From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56879 Path: main.gmane.org!not-for-mail From: asjo@koldfront.dk (=?iso-8859-1?q?Adam_Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: CRM114 Mailfilter and spam.el Date: Fri, 02 Apr 2004 18:04:49 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Sender: ding-owner@lists.math.uh.edu Message-ID: <87vfkigyce.fsf@virgil.koldfront.dk> References: <87isgjpggh.fsf@virgil.koldfront.dk> <87wu4ysxum.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1080921966 5924 80.91.224.253 (2 Apr 2004 16:06:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Apr 2004 16:06:06 +0000 (UTC) Original-X-From: ding-owner+M5418@lists.math.uh.edu Fri Apr 02 18:05:55 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 1B9RB5-0007f0-00 for ; Fri, 02 Apr 2004 18:05:55 +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 1B9RAr-0001IO-00; Fri, 02 Apr 2004 10:05:41 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1B9RAk-0001II-00 for ding@lists.math.uh.edu; Fri, 02 Apr 2004 10:05:34 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1B9RAi-0000kb-L5 for ding@lists.math.uh.edu; Fri, 02 Apr 2004 10:05:32 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 0F5393A004B for ; Fri, 2 Apr 2004 10:05:31 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B9RAf-00073a-00 for ; Fri, 02 Apr 2004 18:05:29 +0200 Original-Received: from finn.gmane.org ([80.91.224.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Apr 2004 18:05:29 +0200 Original-Received: from asjo by finn.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Apr 2004 18:05:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 98 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: finn.gmane.org X-Face: &DfBw60^ZxI8hd?J%t&_8wW?SLF%BBx<2XQ+sXYpX!?{=0C?9D{Nc`;Eq<0d=-L User-Agent: Gnus/5.110002 (No Gnus v0.2) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:vW0h9TpBrSPCLaIOmG1duwu5GP8= X-Spam-Score: -4.9 (----) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56879 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56879 On Fri, 02 Apr 2004 08:22:25 +0200, Kai wrote: > asjo@koldfront.dk (Adam Sj=F8gren) writes: >> * If a spam is misclassified as ham, I would like to mark that >> message in some way, so that it is moved to nnml:spam and >> mailfilter.crm is called with --learnspam on it. > I think you want to set spam-process-ham-in-spam-groups for this > one. >> * If a ham is misclassified as spam, and therefore is split into >> nnml:spam, I would like to move it to the correct group and have >> mailfilter.crm called on it with --learnnonspam. > But I can't find spam-process-spam-in-ham-groups. Hm. Okay, I got it almost working (by reading the documentation one more time). My understanding so far is this: * I want all my groups to be unclassified - because I only want to train on errors (marking them by hand). I never want to train on properly classified ham nor spam. * On the topic that contains all my normal email-groups, I've set these parameters: ((spam-process '(spam spam-use-crm114)) (spam-process-destination . "nnml:spam")) This means that if spam ends up in one of my normal email-groups, I mark it with M-d ($), and it crm114 is called to learn it as spam, and it is moved to nnml:spam. Success! This is what I want, and it works. * On my nnml:spam-group (where spam is split to, and moved to as per above) I've set these parameters: ((spam-process '(ham spam-use-crm114)) (ham-process-destination . "nnml:normal") (spam-process-destination . "nnml:spam") (ham-marks (gnus-ticked-mark)) What I want to achieve with this is: When a ham ends up in nnml:spam, I tick it (!). When I leave the group, crm114 should learn it as ham, and the article should be moved to nnml:normal[1]. This only works partially: The ticked articles are processed by crm114 to be learned as ham (fine), but the articles are not moved to nnml:normal - they stay in nnml:spam. (I guess the spam-process-destination should be removed, as it isn't used). * My global variables are set like this: (setq ; Only process each article once: spam-log-to-registry t ; Only process spam in nonspam groups (i.e. Train On Error only): spam-move-spam-nonspam-groups-only t ; All my groups are unclassified, I should remove this one: spam-process-ham-in-spam-groups t ; Process ham in ham and unclassified groups: spam-process-ham-in-nonham-groups t ; I want ham to be unread when moved out (it never is, but that's ; what I would like if it did move): spam-mark-ham-unread-before-move-from-spam-group t ; CRM114 Mailfilter (I will submit a patch): spam-use-crm114 t spam-crm114-path "/home/asjo/crm114.pl" ; (for debugging) spam-crm114-database-directory "--fileprefix=3D/home/asjo/.crm114/") And I use (: spam-split) in my fancy split-rules. This is very cool - it's beginning to make sense to me _and_ it almost works :-) I've only got the "ham-marked articles in nnml:spam should be moved as well as processed"-problem left. Best regards, Adam [1]: If the articles I mark as ham in nnml:spam could be 1) learned as ham by crm114 and then 2) respooled, that would be even better than 2) moved to nnml:normal. --=20 "Mr. Cotton's... parrot. Same question." Adam Sj=F8gren asjo@koldfront.dk