Gnus development mailing list
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: ding@gnus.org
Subject: SPAM in spam group is processed into that exact same group
Date: Thu, 21 Oct 2010 20:38:19 +0200	[thread overview]
Message-ID: <87ocan4cis.fsf@thinkpad.tsdh.de> (raw)

Hi all,

I use 2 IMAP accounts and the spam processing is done on the server
side.  Now I want to setup gnus' spam processing to move false positives
and false negatives into training groups by (un)marking them with $.
That's what I've come up with:

--8<---------------cut here---------------start------------->8---
(spam-initialize)
(setq gnus-spam-newsgroup-contents
      ;; My spam groups all have spam or Junk in their name
      '(("\\.\\(spam\\|Junk\\)" gnus-group-spam-classification-spam))

      ;; Move SPAM in normal groups to spam training or spam group.
      gnus-spam-process-destinations
      '(("nnimap\\+Fastmail:"
	 "nnimap+Fastmail:INBOX.training.spam")
	("nnimap\\+Uni:"
	 "nnimap+Uni:Junk"))

      ;; Move ham in spam groups to inbox and training.ham.
      gnus-ham-process-destinations
      '(("nnimap\\+Fastmail:INBOX\\.Junk Mail"
	 "nnimap+Fastmail:INBOX"
	 "nnimap+Fastmail:INBOX.training.ham")))
--8<---------------cut here---------------end--------------->8---

I think the processing basically works fine except one really annoying
issue:  as soon as I leave some spam group like

  nnimap+Fastmail:INBOX.Junk Mail
  nnimap+Fastmail:INBOX.training.spam
  nnimap+Uni:Junk

which all contain only messages marked as spam ($), all messages in the
summary buffer are moved from that group into the exact same group.  And
unmarking a spam article before leaving doesn't process that into my
inbox and training.ham group, too, but does nothing instead.

My understanding was that in spam groups only the ham processor is
invoked whereas in ham and unclassified groups only the spam processor
does its job, but that seems to be false.  It looks to me that only the
spam processor is invoked in all groups.

To make things worse, the docs talk about several variables that don't
exist in my emacs/gnus, both the current heads of their bzr/git
repositories, e.g. `spam-move-spam-nonspam-groups-only',
`spam-process-ham-in-spam-groups', or
`spam-process-ham-in-nonham-groups'.

What am I doing wrong, or is it a bug?

Bye,
Tassilo



             reply	other threads:[~2010-10-21 18:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-21 18:38 Tassilo Horn [this message]
2010-10-24  9:55 ` Tassilo Horn
2010-10-25 18:53   ` Ted Zlatanov
2010-10-25 20:05     ` Tassilo Horn
2010-10-25 20:23       ` Ted Zlatanov
2010-10-26  7:04         ` Tassilo Horn
2010-10-26 16:26           ` Ted Zlatanov
2010-10-26 17:38             ` Tassilo Horn
2010-10-26 18:47               ` Ted Zlatanov
2010-10-26 21:04                 ` Tassilo Horn
2010-10-27 17:37                   ` Ted Zlatanov
2010-11-03 16:39                     ` Tassilo Horn
2010-11-04  8:16                       ` Tassilo Horn
2010-11-04 20:18                         ` Lars Magne Ingebrigtsen
2010-11-05  8:59                           ` Tassilo Horn
2010-11-30 16:58                       ` Tassilo Horn
2010-11-30 18:36                         ` Tassilo Horn
2010-12-05 12:33                         ` Lars Magne Ingebrigtsen
2010-12-05 18:13                           ` Tassilo Horn
2010-12-05 18:37                             ` Lars Magne Ingebrigtsen
2010-12-14 22:32                               ` 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=87ocan4cis.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --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).