info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use the new code in spam.el?


From: Tassilo Horn
Subject: Re: How to use the new code in spam.el?
Date: Sun, 08 Jul 2012 18:50:18 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

"John Wiegley" <johnw@newartisans.com> writes:

Hi John,

> In Gnus, I want to be able to mark spam in INBOX with $, and ham in
> mail.spam with M-u, and have each moved to the right place.

I do exactly that.  Here're the relevant settings:

--8<---------------cut here---------------start------------->8---
(spam-initialize)
(setq gnus-spam-newsgroup-contents
      '(("\\(spam\\|Junk\\)" gnus-group-spam-classification-spam))
      ;; Move SPAM in normal groups to traning.spam.
      gnus-spam-process-destinations
      '(("nnimap\\+Fastmail:"
         "nnimap+Fastmail:INBOX.training.spam")
        ("nnimap\\+Uni:"
         "nnimap+Uni:Junk"))
      ;; Move ham in spam groups to both inbox and training.ham.
      gnus-ham-process-destinations
      '(("nnimap\\+Fastmail:INBOX\\.Junk Mail"
         "nnimap+Fastmail:INBOX"
         "nnimap+Fastmail:INBOX.training.ham")
        ("nnimap\\+Uni:Junk"
         "nnimap+Uni:INBOX")))
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]