From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49140 Path: main.gmane.org!not-for-mail From: Bill White Newsgroups: gmane.emacs.gnus.general Subject: Re: 2 problems with spam + spam-stat Date: Mon, 13 Jan 2003 07:03:32 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042463021 12895 80.91.224.249 (13 Jan 2003 13:03:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2003 13:03:41 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Y4Ff-0003Lq-00 for ; Mon, 13 Jan 2003 14:03:39 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18Y4Ft-0004CU-00; Mon, 13 Jan 2003 07:03:53 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 13 Jan 2003 07:04:49 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id HAA01249 for ; Mon, 13 Jan 2003 07:04:36 -0600 (CST) Original-Received: (qmail 47197 invoked by alias); 13 Jan 2003 13:03:36 -0000 Original-Received: (qmail 47192 invoked from network); 13 Jan 2003 13:03:35 -0000 Original-Received: from wri-dns0.wolfram.com (HELO wolfram.com) (140.177.205.10) by 66.230.238.6 with SMTP; 13 Jan 2003 13:03:35 -0000 Original-Received: from billwlx.wolfram.com.wolfram.com (dmz5.wolfram.com [140.177.205.1]) by wolfram.com (8.11.2/8.11.2) with ESMTP id h0DD3Xb16616 for ; Mon, 13 Jan 2003 07:03:33 -0600 Original-To: ding X-Phone: 217-398-0700 x 234 X-Fax: 217-398-0747 In-Reply-To: (Ted Zlatanov's message of "Mon, 13 Jan 2003 00:18:50 -0500") X-Liturgical-Date: Optional Memorial: Saint Hilary, bishop and doctor of the Church X-Face: $f^q=3W-VRc;w9na5Y.c-Jvu)M";y1O184tHjf@PP26MzCi.}7S^GP;QlJ$A3.PH|-`aQZ! d,*2d|f2z"9y%}r'$nhAO(9h`dv>,Mp\H6jf8AbuG>EZ,{u:cksL#NwCBoF<\;{QO+p32'(1*r"f-l baaB}uoEkv(o864LM@sH User-Agent: Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.3.50 (i586-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49140 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49140 On Sun Jan 12 2003 at 23:18, Ted Zlatanov said: > On Sun, 12 Jan 2003, billw@wolfram.com wrote: >> 1 - the contents of spam-stat-file do not survive the first >> automated spam study: I mark spam in my mail.misc, quit, the spam >> is studied and expired: [...] >> Then spam-stat-file looks like this: >> >> ---------------------------------------------------------------------- >> (setq spam-stat-ngood 0 spam-stat-nbad 0 spam-stat >> (spam-stat-to-hash-table '())) >> ---------------------------------------------------------------------- >> > I can't comment on this, I think it's a spam-stat.el issue unless > it's related to something below. Alex? Loading the spam-stat-file at startup solves the problem: ---------------------------------------------------------------------- (require 'spam) (setq spam-stat-file "/billw/Mail-2003/.spam-stat.el") (spam-stat-load) ---------------------------------------------------------------------- I realized it's just a setq, so it needed to be loaded into memory before the automated study stuff began working. >> 2 - After adding spam-stat-split-fancy to nnmail-split-fancy like >> this: [...] >> I get an error when splitting (copied from the Messages buffer): >> >> Result: nil Result: (wrong-type-argument stringp nil) Error in >> spam-stat-split-fancy: (wrong-type-argument stringp nil) Result: >> "Error in spam-stat-split-fancy: (wrong-type-argument stringp nil)" >> Result: nil >> >> Edebug on spam-stat-split-fancy reveals that during splitting >> spam-stat-buffer is nil, which results in an error. > > You should use the spam-split function, it invokes > spam-stat-split-fancy with spam-stat-buffer set appropriately when > spam-use-stat is set (as you have). spam-stat-split-fancy will only > work on its own if you load spam-stat.el directly, without spam.el. > Let me know how that works. I get an error in splitting, but even though I instrumented spam-check-stat, I can't trace it. Moving to nnml: (342)... Loading gnus-dup...done Loading /billw/Mail-2003/.spam-stat.el (source)...done Error in `nnmail-split-methods'; using `bogus' mail group Wrote /billw/Mail-2003/bogus/4 Late list night I "solved" this problem by using spam-stat-split-fancy in my fancy split rules and explicitly adding the appropriate hooks in my .gnus file: (add-hook 'nnmail-prepare-incoming-message-hook 'spam-stat-store-current-buffer) (add-hook 'gnus-select-article-hook 'spam-stat-store-gnus-article-buffer) Cheers - bw -- Bill White . billw@wolfram.com . http://members.wri.com/billw "No ma'am, we're musicians."