Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: Configuring spam.el: A few questions
Date: Thu, 15 Apr 2004 15:54:01 -0400	[thread overview]
Message-ID: <4n7jwhaug6.fsf@b2-25-3.bwh.harvard.edu> (raw)
In-Reply-To: <m2fzblz33g.fsf@c-a85372d5.036-4-67626721.cust.bredbandsbolaget.se> (Jonas Steverud's message of "Sat, 03 Apr 2004 13:57:07 +0200")

On Sat, 03 Apr 2004, tvrud@bredband.net wrote:
> Ted Zlatanov <tzz@lifelogs.com> writes:
> 
>> On Wed, 31 Mar 2004, tvrud@bredband.net wrote:
> [...]
>>> As I've understood it, all spam marked mails will be moved to the
>>> Spam-group due to the topic parameter above, but then? 
>>
>> With a spam exit processor, the spam will also be processed before
>> it's moved.  Also, it will be marked expired.
> 
> I.e. if I set
> 
> nnfolder:Spam:
>  ((spam-contents gnus-group-spam-classification-spam)
>  (ham-marks
>   (gnus-ticked-mark)))
> 
>  And the Email topic:
>  ((spam-process-destination . nil) ;; Necessary at all?

I would keep it, to make sure it is always nil (if
spam-process-destination is set higher in the topic hierarchy it could
override this one).

>  (spam-process
>   (gnus-group-spam-exit-processor-bogofilter)))
> 
> And use spam-split in fancy-splitting to nnfolder:Spam I will have
> the following setup:
> 
> 1. Detected spam during splitting will end up in nnfolder:Spam
> 
> 2. Undetected spam will be split as an ordinary email.
> 
> I then start to read my mail and
> 
> a. Spam in ordinary groups (e.g. nnfolder:Ding) will be marked with
>    M-d and then bogofilter will be trained on it upon exit. The spam
>    will be marked expired.

Yes.

> b. Emails in nnfolder:Spam will be considered spam unless I tick
> 'em.

Yes.

> b1. Ticked emails are moved to ham-process-destination (which I will
>     set on topic level to my main mailbox) and bogofilter will be
>     trained on it as ham after adding
>       (ham-process (gnus-group-ham-exit-processor-bogofilter)) to
>       the
>     Email topic parameter.

Exactly.

> b2. Spam (i.e. all emails I do not tick) is ... now my understanding
>     starts to slip again. It is marked as expired by (spam-contents
>     gnus-group-spam-classification-spam), right? Is bogofilter
>     trained on it again? (Doesn't make sense but have to ask.)
>     (Will the emails in the Spam group have the $-sign
>     automagically?  [Have to ask again.])

All the spam is processed by the spam processor, marked expired, and
sent to the spam destination, regardless of the group classification.
So the result is the same as if you had processed the spam in any
other group with those parameters.  This is only the case for spam;
ham has different processing rules depending on the group
classification.

> If this is the case, I will "only" need to add the following to
> .gnus and then I'm past the finish line, right?
> 
> (setq   gnus-registry-cache-file (concat gnus-dribble-directory
> 					 "gnus.registry.eld")
>   
> 	spam-use-bogofilter t
> 	spam-use-BBDB t ;; Whitelist
> 	spam-log-to-registry t
> 	
> 	spam-mark-ham-unread-before-move-from-spam-group t
> 	)
> 
> (spam-initialize) 
> (gnus-registry-initialize)
> 
> I also need to add (: gnus-registry-split-fancy-with-parent) to the
> split rules.

I think that's it.

> I quite don't understand the difference between the
> (: gnus-registry-split-fancy-with-parent) and the
> (: nnmail-split-fancy-with-parent). Anyone that cares to explain the
> difference and/or the idea behind the registry?

The registry is a way to keep track of articles by message ID, and to
record in what groups that message ID has been seen.  Tracking parent
articles is done with the References header, which indicates the
message IDs of parent articles.  Article copies, moves, and deletions
are tracked.

The nnmail-split-fancy-with-parent method was the inspiration, and
it's quite similar, but it's more limited because it only works for
nnmail.

> Unseen = all emails that for one reason or the other is nor shown in
> the summary buffer, e.g. read emails. Or is there some other (Gnus
> specific) terminology I've missed?

"Unseen" are those articles you never saw before.

"Unread" are those that are not marked read, expired, ticked, etc.

I know this can be confusing...

Hope that helps.

Ted




  reply	other threads:[~2004-04-15 19:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-31  9:05 Jonas Steverud
2004-03-31 18:54 ` Ted Zlatanov
2004-04-03 11:57   ` Jonas Steverud
2004-04-15 19:54     ` Ted Zlatanov [this message]
2004-04-16  9:42       ` Jonas Steverud
2004-04-16 14:36         ` Ted Zlatanov
2004-04-16 20:37           ` Kai Grossjohann
2004-04-17  9:28           ` Jonas Steverud
2004-04-17 18:55             ` Dan Christensen
2004-04-18  8:04               ` Kai Grossjohann
2004-04-18 17:37                 ` Dan Christensen
2004-04-18 19:56                   ` Terminology (was: Configuring spam.el: A few questions) Jonas Steverud
2004-04-18 20:16                     ` Terminology Simon Josefsson
2004-04-18 20:28                       ` Terminology Jonas Steverud
2004-04-18 20:50                         ` Terminology Simon Josefsson
2004-04-19  8:13                           ` Terminology Kai Grossjohann
2004-04-21 15:50                             ` Terminology Ted Zlatanov
2004-04-18 20:30                   ` Configuring spam.el: A few questions Kai Grossjohann

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=4n7jwhaug6.fsf@b2-25-3.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).