From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@hpc.uh.edu, jhbrown@ai.mit.edu
Subject: Re: ifile-gnus: Add hooks to Gnus on move/edit/delete?
Date: Tue, 31 Dec 2002 09:32:38 -0500 [thread overview]
Message-ID: <m3wulq9s3d.fsf_-_@heechee.beld.net> (raw)
In-Reply-To: <84bs329yrb.fsf@lucy.cs.uni-dortmund.de> (kai.grossjohann@uni-duisburg.de's message of "Tue, 31 Dec 2002 13:08:40 +0100")
On Tue, 31 Dec 2002, kai.grossjohann@uni-duisburg.de wrote:
> Ted Zlatanov <tzz@lifelogs.com> writes:
>
>> On Mon, 30 Dec 2002, kai.grossjohann@uni-duisburg.de wrote:
>>> Well, nnmail-split-methods (or nnmail-split-fancy) could use
>>> spam.el to put spam messages into a special group. spam.el could
>>> invoke ifile, telling it to use ~/.idata.spam. After this,
>>> `normal' ifile-gnus processing could be done on the remaining ham.
>>
>> On second thought, why not have something like
>>
>> (: spam-split)
>> (: ifile-split)
>>
>> in the split rules?
>
> That might implement my suggestion. I haven't tried it :-) If it
> works, it's a really good idea.
I think it should, no reason why not. The ifile invocation inside
spam-split is binary. We invoke ifile-spam-filter with 'nil' as the
other-split parameter, and we set ifile-primary-spam-group to
spam-split-group; this means that only spam-split-group or nil will be
returned.
(defun ifile-spam-filter (other-split)
(if (and ifile-active (equal (ifile-recommend) "spam"))
ifile-primary-spam-group
other-split))
So just add this (sorry, no ifile-split exists)
(: ifile-recommend)
after (: spam-split) in your nnmail split rules and turn ifile on.
The penalty is that you invoke ifile twice for each article.
As I said, I want to wait until the ifile interface is stable before I
have spam.el support it for summary exit processing of spam. I hope
that's OK with everyone. Right now, you can manually move spam-marked
articles to your spam-split-group, and ifile-gnus.el will understand
that you want them to be considered spam.
> (I wonder if spam.el needs to tell ifile to use another index file.)
I don't think so, this should work right away.
Ted
next prev parent reply other threads:[~2002-12-31 14:32 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-10 16:17 Kai Großjohann
2002-09-10 18:17 ` Jeremy H. Brown
2002-09-10 20:04 ` Kai Großjohann
2002-09-10 21:03 ` Jeremy H. Brown
2002-09-12 18:07 ` Clemens Fischer
2002-09-13 4:25 ` Jeremy H. Brown
2002-12-29 17:43 ` Lars Magne Ingebrigtsen
2002-12-29 18:34 ` Kai Großjohann
2002-12-29 18:44 ` Lars Magne Ingebrigtsen
2002-12-29 19:14 ` Ted Zlatanov
2002-12-29 22:06 ` Kai Großjohann
2002-12-29 22:53 ` Lars Magne Ingebrigtsen
2002-12-30 3:35 ` Ted Zlatanov
2002-12-30 18:49 ` Kai Großjohann
2002-12-30 3:33 ` Ted Zlatanov
2002-12-30 18:53 ` Kai Großjohann
2002-12-30 22:53 ` Ted Zlatanov
2002-12-31 12:08 ` Kai Großjohann
2002-12-31 14:32 ` Ted Zlatanov [this message]
2002-12-31 19:44 ` ifile-gnus: " Nathan J. Williams
2002-12-31 20:00 ` Ted Zlatanov
2003-01-02 17:29 ` Simon Josefsson
2003-01-02 21:31 ` Kai Großjohann
2003-01-02 22:07 ` Simon Josefsson
2003-01-03 13:31 ` Kai Großjohann
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=m3wulq9s3d.fsf_-_@heechee.beld.net \
--to=tzz@lifelogs.com \
--cc=ding@hpc.uh.edu \
--cc=jhbrown@ai.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).