From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/49132 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: 2 problems with spam + spam-stat Date: Mon, 13 Jan 2003 00:18:50 -0500 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos 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 1042435011 26552 80.91.224.249 (13 Jan 2003 05:16:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2003 05:16:51 +0000 (UTC) Cc: ding 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 18Xwxt-0006tz-00 for ; Mon, 13 Jan 2003 06:16:49 +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 18XwyM-0002Vk-00; Sun, 12 Jan 2003 23:17:18 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 12 Jan 2003 23:18:14 -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 XAA00312 for ; Sun, 12 Jan 2003 23:18:01 -0600 (CST) Original-Received: (qmail 15323 invoked by alias); 13 Jan 2003 05:17:01 -0000 Original-Received: (qmail 15318 invoked from network); 13 Jan 2003 05:17:01 -0000 Original-Received: from ns1.beld.net (208.229.215.81) by 66.230.238.6 with SMTP; 13 Jan 2003 05:17:01 -0000 Original-Received: from heechee.beld.net (dhcp-0-30-bd-1-93-b2.cpe.beld.net [24.233.65.6]) by ns1.beld.net (Postfix) with ESMTP id 959DC3B9EF; Mon, 13 Jan 2003 00:15:38 -0500 (EST) Original-To: Bill White 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: Bill White , ding In-Reply-To: (Bill White's message of "Sun, 12 Jan 2003 16:10:42 -0600") User-Agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.2 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:49132 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:49132 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: > > ---------------------------------------------------------------------- > Mark set No more articles [2 times] Moving to nnml:spam: (319)... > Wrote /billw/Mail-2003/spam/157 Moving to nnml:spam: (320)... Wrote > /billw/Mail-2003/spam/158 Wrote /billw/Mail-2003/.spam-stat.el > Expiring articles...done Wrote /billw/Mail-2003/.newsrc-dribble Mark > set > ---------------------------------------------------------------------- > > Then spam-stat-file looks like this: > > ---------------------------------------------------------------------- > (setq spam-stat-ngood 0 spam-stat-nbad 0 spam-stat > (spam-stat-to-hash-table '())) > ---------------------------------------------------------------------- > > So I study spam again: > > Learn spam: (spam-stat-process-spam-directory > "/billw/Mail-2003/spam") Learn spam: > (spam-stat-process-spam-directory "/billw/Mail-2003/spamassassin") > Learn spam: (spam-stat-process-spam-directory > "/billw/Mail-2003/spamtrap") Learn non-spam: > (spam-stat-process-non-spam-directory > "/billw/Mail-2003/mail/misc/2003/01") Reduce table size: > (spam-stat-reduce-size) Save table: (spam-stat-save) > > Then spam-stat-file looks like this: > > ---------------------------------------------------------------------- > (setq spam-stat-ngood 73 spam-stat-nbad 949 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? > 2 - After adding spam-stat-split-fancy to nnmail-split-fancy like > this: > > ---------------------------------------------------------------------- > (setq nnmail-split-fancy '(| ("to" ".*billw@wri\\.com" "spamtrap") > ("List-Id" ".*pstricks\\.tug\\.org.*" "pstricks") ("List-Id" > ".*virtual fonts (: spam-stat-split-fancy) (: (lambda nil (format-time-string > "mail.misc.%Y.%m"))))) > ---------------------------------------------------------------------- > > 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. Thanks Ted