Gnus development mailing list
 help / color / mirror / Atom feed
* 2 problems with spam + spam-stat
@ 2003-01-12 22:10 Bill White
  2003-01-13  5:18 ` Ted Zlatanov
  0 siblings, 1 reply; 4+ messages in thread
From: Bill White @ 2003-01-12 22:10 UTC (permalink / raw)


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 ...
----------------------------------------------------------------------

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 <fontinst\\.tug\\.org.*" "fontinst")
;;      [...]
	(: 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.

Settings
========

Oort Gnus v0.12 (cvs from early Sunday morning), GNU Emacs 21.3.50.2
(i586-pc-linux-gnu, X toolkit) of 2002-12-03 on seton

I load the machinery with:

(require 'spam)

Here's the customized stuff.  The first three aren't really used in my
setup, I think.

 '(spam-directory "/billw/Mail-2003/spam-directory/")
 '(spam-blacklist "/billw/Mail-2003/spam-directory/blacklist")
 '(spam-whitelist "/billw/Mail-2003/spam-directory/whitelist")
 '(spam-face (quote gnus-summary-low-ticked-face))
 '(spam-junk-mailgroups (quote ("nnml:spam" "nnml:spamassassin" "nnml:junk" "nnml:spamtrap")))
 '(spam-use-stat t)
 '(spam-stat-file "/billw/Mail-2003/.spam-stat.el")
 '(spam-stat-split-fancy-spam-group "nnml:spam")

And I've customized the group parameters of my spam groups and my one
non-spam group per the manual.

Let me know if there's any other information I can provide or tests I
can run.

Cheers -

bw
-- 
Bill White . billw@wolfram.com . http://members.wri.com/billw
"No ma'am, we're musicians."




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-13 17:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-12 22:10 2 problems with spam + spam-stat Bill White
2003-01-13  5:18 ` Ted Zlatanov
2003-01-13 13:03   ` Bill White
2003-01-13 17:34     ` Ted Zlatanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).