Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Cc: ding@hpc.uh.edu
Subject: Re: Add hooks to Gnus on move/edit/delete?
Date: Sun, 29 Dec 2002 22:33:54 -0500	[thread overview]
Message-ID: <m31y40rxi5.fsf@heechee.beld.net> (raw)
In-Reply-To: <847kdswkd6.fsf@lucy.cs.uni-dortmund.de> (kai.grossjohann@uni-duisburg.de's message of "Sun, 29 Dec 2002 23:06:29 +0100")

On Sun, 29 Dec 2002, kai.grossjohann@uni-duisburg.de wrote:

> I think it might work if you use nnimap splitting.  If you use Sieve
> or procmail, then it could be difficult, since the ifile database
> would be on your local host in the home dir, whereas the
> Sieve/procmail rules are on the IMAP server.

We can explicitly require that in the manual.

>> So if ifile-spam-filter could and should be replaced with another
>> ifile-gnus.el function that returns regular group names, spam.el
>> can do all the ifile classification automatically if the user just
>> sets spam-use-ifile to t.
>>
>> Does that sound reasonable?
> 
> I'm not sure.  How do I tell spam.el which group a message is in?
> If ifile has chosen the group wrongly, how do I tell it about the
> error?

I think it's supposed to be automatic, but currently only bogofilter
processing is done:

- when entering a spam group ( a member of spam-junk-mailgroups),
  all unread messages are marked as spam

- when exiting any group:

  - spam-marked articles are processed as spam, then marked expired so
    they are not processed twice and so we don't keep them around.

  - ham-marked articles are processed as ham (non-spam); these are the
    gnus-del-mark, gnus-read-mark, gnus-killed-mark,
    gnus-kill-file-mark, and gnus-low-score-mark articles.  There
    should be, but isn't, a mechanism to prevent them from being
    processed more than once.  Any suggestions?  Yet another cache or
    a supplemental ham-processed-mark?

When I say "processed," I mean "passed to bogofilter on the command line
with the appropriate flag (-n for ham, -s for spam)."

The equivalent of spam-bogofilter-register-routine for ifile needs to
be written for ifile processing on group summary exit.  I haven't done
it yet, because I didn't know that ifile-gnus.el supported nnimap
already.  So let me know if you think it's ready to be incorporated.

> ifile-gnus intercepts move and copy operations to see that.  So
> designating a message as spam works by moving it to the spam group.

With spam.el, you designate a message as spam by marking it with the
spam mark.  We could automatically move all spam articles in a group
to the spam group on summary exit when ifile is enabled, to accomodate
its operation mode.  But would that be acceptable to users?

> Maybe a two-stage process is better: first decide whether it's spam
> or not, then distribute the non-spam to the right groups.

I'm not sure how that would work.

Ted




  parent reply	other threads:[~2002-12-30  3:33 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 [this message]
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                 ` ifile-gnus: " Ted Zlatanov
2002-12-31 19:44                   ` 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=m31y40rxi5.fsf@heechee.beld.net \
    --to=tzz@lifelogs.com \
    --cc=ding@hpc.uh.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).