From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: spam.el is a bit aggressive loading/saving spam-stat data
Date: Mon, 24 Feb 2003 16:53:14 -0500 [thread overview]
Message-ID: <4nisv91h2t.fsf@chubby.bwh.harvard.edu> (raw)
In-Reply-To: <874r6xtccq.fsf@emacswiki.org> (Alex Schroeder's message of "Sat, 22 Feb 2003 00:58:45 +0100")
On Sat, 22 Feb 2003, alex@emacswiki.org wrote:
> The only problem is that when you quit Gnus without saving, then the
> backends might have reclassified an article from spam to non-spam
> (and moved the article physically from one group to another), but
> the scores are unchanged. Depending on how you want to look at it,
> it seems to me that the only good solution is this:
>
> Only save spam-stat data when newsrc is saved, and add some elisp to
> .newsrc-dribble whenever articles are processed. Then the
> information should be more or less in sync, as .newsrc-dribble gets
> autosaved... Perhaps .newsrc-dribble gets saved whenever the
> backends save something, I haven't investigated. That would be the
> perfect solution, then.
For now, I moved spam-stat-save out of the classification functions in
spam.el, and added spam-stat-save to the gnus-save-newsrc-hook. The
add-hook is done iff spam-use-stat is set.
I am not sure how to handle a spam-stat .dribble, if you want to write
that code (spam-stat-load-dribble, spam-stat-save-dribble) I'll be
glad to trigger it from spam.el.
Thanks
Ted
next prev parent reply other threads:[~2003-02-24 21:53 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-20 18:22 David Z Maze
2003-02-21 8:16 ` Niklas Morberg
2003-02-21 15:14 ` Ted Zlatanov
2003-02-21 20:25 ` David Z Maze
2003-02-21 20:49 ` Ted Zlatanov
2003-02-21 21:06 ` David Z Maze
2003-02-21 23:58 ` Alex Schroeder
2003-02-24 21:53 ` Ted Zlatanov [this message]
2003-02-26 2:23 ` David Z Maze
2003-02-26 21:15 ` Ted Zlatanov
2003-03-01 13:26 ` David Z Maze
2003-03-01 15:08 ` Ted Zlatanov
2003-03-02 23:49 ` David Z Maze
2003-03-06 13:22 ` Niklas Morberg
2003-03-06 15:39 ` Ted Zlatanov
2003-03-07 14:27 ` Bill White
2003-03-07 14:38 ` Niklas Morberg
2003-03-07 15:13 ` Bill White
2003-03-10 8:05 ` Niklas Morberg
2003-03-11 12:53 ` Bill White
2003-03-07 14:55 ` Ted Zlatanov
2003-03-07 22:55 ` A.J. Rossini
2003-03-08 0:49 ` Alex Schroeder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4nisv91h2t.fsf@chubby.bwh.harvard.edu \
--to=tzz@lifelogs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).