[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nnimap split rules
From: |
Ted Zlatanov |
Subject: |
Re: nnimap split rules |
Date: |
Tue, 01 Dec 2009 15:02:17 -0600 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
On Wed, 18 Nov 2009 21:56:27 -0600 Seb <spluque@gmail.com> wrote:
S> Can someone please show a working example of `nnimap-split-fancy' with
S> `spam-split' using bogofilter? I have:
S> (require 'spam)
S> (setq spam-split-group "SPAM"
S> spam-use-bogofilter t
S> nnimap-split-inbox '("INBOX")
S> nnimap-split-predicate "UNSEEN"
S> nnimap-split-rule 'nnimap-split-fancy
S> nnimap-split-fancy
S> '(| (from ".*sebmags.homelinux.org.*" "System")
S> (: spam-split)
S> "INBOX"))
S> (spam-initialize)
S> but invariably all messages in INBOX are obliterated completely from the
S> IMAP server. Any help would be very much appreciated.
I use many rules, predicated on the server name. I included just one
example but they are all very similar.
(require 'gnus-registry)
(gnus-registry-initialize)
(require spam)
(spam-initialize 'spam-use-regex-headers 'spam-use-BBDB)
(setq
nnimap-split-rule '(("lifelogs" ("INBOX" nnimap-courier-lifelogs-split-fancy)))
nnimap-courier-lifelogs-split-fancy '(|
(: gnus-registry-split-fancy-with-parent)
(: spam-split 'spam-use-regex-headers)
;;; custom rules go here
(: spam-split)
;; default mailbox
"INBOX.mail")
)
My full configuration is huge so I won't include the whole thing. I'd
suggest using (: debug) as a rule and see if it gets triggered. If it
doesn't, you'll know that your split rules are not getting evaluated.
Ted
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: nnimap split rules,
Ted Zlatanov <=