Gnus development mailing list
 help / color / mirror / Atom feed
From: Zack Weinberg <zack@codesourcery.com>
Cc: ding@gnus.org
Subject: A different spam model, which might be possible already (was Re: Ideas for .no Gnus)
Date: Fri, 02 May 2003 19:29:41 -0700	[thread overview]
Message-ID: <87n0i4g3u2.fsf@egil.codesourcery.com> (raw)
In-Reply-To: <u8ytpvybg.fsf@hschmi22.userfqdn.rz-online.de> (Frank Schmitt's message of "Fri, 02 May 2003 23:22:11 +0200")

Frank Schmitt <usereplyto@Frank-Schmitt.net> writes:

> Hello
>
> Now that Oort is released, I'd like to throw some ideas in, which
> features I as (primarily) a user would like to see in the next Gnus:

This is the second of my two wishes:

I use Gnus primarily to get at my mail, which is stored on an IMAP
server.  Mail is sorted into folders by a maildrop script which runs
on the server.  This script is also responsible for running bogofilter
to weed out spam, which is sent to a separate folder; thus the
bogofilter database is stored on that machine, too. I have shell
access to the machine which stores the mail.

I have not yet been able to figure out how to use Gnus' spam features
to feed error corrections back to bogofilter on the remote machine.
The way I would like it to work is:

* If I do 'B m' on message(s) in the spam group, they automagically
  get their $ mark removed.  Also, a hook fires which runs a program
  on the local machine.  This program gets the IMAP UIDs of all the
  moved messages as arguments.  It does *not* get the text of the
  messages on its standard input or elsewhere.  It does not need to
  know the destination of the messages.  The move command is issued to
  the IMAP server only after this program finishes.

* If I mark messages in ham groups as spam ($), then on group exit
  another hook fires which, again, runs a program on the local
  machine, passing the IMAP UIDs of all the spam-marked messages as
  arguments.  This program does need to know the name of the group
  containing the messages - presumably that is an argument too.  After
  the program finishes, all the spam-marked messages are deleted as if
  with 'B DEL', and then EXPUNGE is issued.

The programs run on the local machine are going to ssh over to the
machine which stores the mail, dig the messages out of the mailboxes,
and run bogofilter database update commands on them.  There's no need
to download the messages to the local machine and then send them back
to the server, but there is a need for the messages not to get deleted
or moved until the aforementioned digging happens.

All of this may be possible right now in Oort, but I don't know how to
do it.  There is nothing in the manual about a setup like this, and I
am not familiar enough with Gnus' internals to know where to look for
appropriate hooks, internal functions, etc.  I do know enough Emacs
Lisp that I can probably code this myself given enough pointers.

zw



  parent reply	other threads:[~2003-05-03  2:29 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-02 21:22 Ideas for .no Gnus Frank Schmitt
2003-05-02 23:48 ` Josh Huber
2003-05-08  9:23   ` Mike Woolley
2003-05-03  0:12 ` IMAP partial fetch (was Re: Ideas for .no Gnus) Zack Weinberg
2003-05-03  0:23   ` IMAP partial fetch Jody Klymak
2003-05-03  2:46   ` Lloyd Zusman
2003-05-03 16:59     ` Kai Großjohann
2003-05-07 20:42   ` Steinar Bang
2003-05-03  1:36 ` Ideas for .no Gnus Richard Hoskins
2003-05-03  5:02   ` Nevin Kapur
2003-05-12  0:03   ` Steve Youngs
2003-05-12  4:27     ` A.J. Rossini
2003-05-12  5:01     ` Richard Hoskins
2003-05-03  1:50 ` Ted Zlatanov
2003-05-03  2:29 ` Zack Weinberg [this message]
2003-05-03 11:30   ` A different spam model, which might be possible already Ted Zlatanov
2003-05-04 16:39     ` Zack Weinberg
2003-05-04 22:32       ` Ted Zlatanov
2003-05-03 13:47   ` Andrew J. Korty
     [not found]   ` <m2llxo2lc3.fsf@ajk.local.>
2003-05-04 22:37     ` Ted Zlatanov
2003-05-03 17:13 ` Ideas for .no Gnus Kai Großjohann
2003-05-04 16:38   ` Lars Magne Ingebrigtsen
2003-05-05 13:17   ` Andreas Fuchs
2003-05-11 22:36   ` Alex Schroeder
2003-05-04  0:47 ` Nicer buttons (was: Ideas for .no Gnus) Jesper Harder
2003-05-04 13:59   ` Nicer buttons Julien Avarre
2003-05-04 14:15     ` luis fernandes
2003-05-04 14:52       ` Julien Avarre
2003-05-04 15:00       ` Jesper Harder
2003-05-05 17:23         ` luis fernandes
2003-05-04 16:41 ` Ideas for .no Gnus Lars Magne Ingebrigtsen
2003-05-05 13:12 ` Andreas Fuchs
2003-05-05 14:49   ` 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=87n0i4g3u2.fsf@egil.codesourcery.com \
    --to=zack@codesourcery.com \
    --cc=ding@gnus.org \
    /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).