From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/56861 Path: main.gmane.org!not-for-mail From: asjo@koldfront.dk (=?iso-8859-1?q?Adam_Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: CRM114 Mailfilter and spam.el Date: Thu, 01 Apr 2004 22:54:06 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Sender: ding-owner@lists.math.uh.edu Message-ID: <87isgjpggh.fsf@virgil.koldfront.dk> 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 1080858558 457 80.91.224.253 (1 Apr 2004 22:29:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Apr 2004 22:29:18 +0000 (UTC) Original-X-From: ding-owner+M5400@lists.math.uh.edu Fri Apr 02 00:29:11 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 1B9AgQ-0000N9-00 for ; Fri, 02 Apr 2004 00:29: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 1B9AfD-00075T-00; Thu, 01 Apr 2004 16:27:55 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1B99IN-00070Q-00 for ding@lists.math.uh.edu; Thu, 01 Apr 2004 15:00:15 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1B99IL-0006OE-HV for ding@lists.math.uh.edu; Thu, 01 Apr 2004 15:00:13 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 73EF33A01F5 for ; Thu, 1 Apr 2004 15:00:11 -0600 (CST) Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B99II-00069L-00 for ; Thu, 01 Apr 2004 23:00:10 +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 ; Thu, 01 Apr 2004 23:00:10 +0200 Original-Received: from asjo by finn.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 01 Apr 2004 23:00:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 58 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:fvX1E3JwNElXf1M/f3ZK8zBS0EU= X-Spam-Score: -4.9 (----) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:56861 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:56861 Hi. So, I've begun to take a stab at switcing from spam-stat.el to CRM114 Mailfilter and spam.el. I followed the instructions in the documentation of spam.el about how to add another back end ("Extending the Spam ELisp package"), basing my additions on the bogofilter stuff, as I guess bogofilter has a similar interface to CRM114 Mailfilter. I think I've got the spam.el <-> CRM114 Mailfilter part working. I can do spam-crm114-score and get the number that mailfilter.crm adds to the header X-CRM114-Status, and splitting puts email in my spam-group - learning spam seems to work. Now I just need to figure out how to configure spam.el to call mailfilter.crm --learnspam/--learnnonspam at the *appropriate* moments only. Boxing with adding crm114 to spam.el has made me a little, uhm, less motivated to experiment further (I'm bad a elisp and it takes a while to figure out _how_ to debug that for instance '--fileprefix=3D blahblah' is very much different from '--fileprefix=3Dblahblah' to mailfilter.crm...), so here goes my question: The documentation for CRM114 underlines heavily and repeatedly that one should *only* train on failures. So I want to only do mailfilter.crm --learnspam on spam that was classified as ham by CRM114, and I want to only do mailfilter.crm --learnnonspam on ham that was classified by CRM114. No learning in any other case. Also, I don't really want special "training"-groups. Ideally I'd like to just have a workflow like this: * Email comes in, and is split with spam-split. Spam goes into "nnml:spam", ham goes through my usual, other splitrules (bbdb and stuff). * 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. * 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. * I would like spam.el *never* to mark *any* message as expirable. That's it. But how? Best regards, --=20 "Mr. Cotton's... parrot. Same question." Adam Sj=F8gren asjo@koldfront.dk