From: David Z Maze <dmaze@MIT.EDU>
Subject: Re: Trouble with spam.el and ifile
Date: Tue, 07 Jan 2003 17:32:31 -0500 [thread overview]
Message-ID: <y68wulg616o.fsf@multics.mit.edu> (raw)
In-Reply-To: <4n1y3owr50.fsf@lockgroove.bwh.harvard.edu> (Ted Zlatanov's message of "Tue, 07 Jan 2003 17:07:23 -0500")
Ted Zlatanov <tzz@lifelogs.com> writes:
> On Tue, 07 Jan 2003, dmaze@MIT.EDU wrote:
>> Is this right?
>
> Yes. It says "mail.misc.spam is a spam group; all my groups should be
> spam-processed with ifile; all spam articles should be moved to
> mail.misc.spam after spam proecsssing; all my incoming spam should be
> filtered, through ifile, into mail.misc.spam."
Okay, good, that's what I want.
>> It should be clearer in the documentation/Customize descriptions
>> where you need the backend prefix and where you don't.
>
> Yeah, the docs need work for sure. I've been trying to get the
> package functionality in place first.
Everything seems to be matched against gnus-newsgroup-name, FWIW,
which does include the backend prefix; since regular expression
matching generally matches substrings, though, it's probably okay to
either have it or not.
> See if that triggers the ifile spam processing on summary exit. You
> must have some spam-marked articles. You can test the processing
> manually with M-: (spam-summary-prepare-exit) - that's the function
> that gets invoked at summary exit.
spam-summary-prepare-exit, eh? That has
;; Only for spam groups, we expire and maybe move articles
(when (spam-group-spam-contents-p gnus-newsgroup-name)
(spam-mark-spam-as-expired-and-move-routine
(gnus-parameter-spam-process-destination gnus-newsgroup-name)))
...but that seems to be the opposite behavior from what I expect, I
want spam to be shuffled into a spam group only if the current group
isn't one. But if I understand the function: spam-marked articles are
noted by the spam backend, then spam-marked articles are refiled, then
in ham groups, the remaining articles are noted as ham by the spam
backend.
>> If I mark an article not-spam in the spam group, does it get refiled
>> to the next best group on exit?
>
> No. You have to move it manually (but that functionality could be
> added). I assume you mean "mark unread," since there is no not-spam
> mark.
Mark unread would work; "any ham mark" or "any not-spam mark" might
make sense too. It sounds like this is falling into "feature request"
land, though.
>> (This is especially true for spam-stat; doing this classification
>> entirely in elisp looks like it might be a big performance win over
>> ifile,
>
> I haven't tested the performance, but ifile definitely has better
> lexing than spam-stat according to the documentation.
It looks like ifile reads its database, processes a single message,
and writes its database; lather, rinse, repeat. If you're dealing
with a networked filesystem, reading and writing the database once per
message is a big lose. I've heard rumors that moving ~/.idata to
local disk improvies this. Doing filtering inside Emacs means that
the database can live in memory until I do a save in Gnus.
--
David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell
next prev parent reply other threads:[~2003-01-07 22:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-07 16:52 David Z Maze
2003-01-07 19:47 ` Ted Zlatanov
2003-01-07 21:05 ` David Z Maze
2003-01-07 22:07 ` Ted Zlatanov
2003-01-07 22:32 ` David Z Maze [this message]
2003-01-07 22:42 ` David Z Maze
2003-01-08 4:55 ` Ted Zlatanov
2003-01-08 15:11 ` Ted Zlatanov
2003-01-08 16:07 ` David Z Maze
2003-01-08 16:15 ` David Z Maze
2003-01-08 16:25 ` Ted Zlatanov
2003-01-08 16:18 ` Ted Zlatanov
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=y68wulg616o.fsf@multics.mit.edu \
--to=dmaze@mit.edu \
/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).