On Wed, 18 Nov 2009 21:56:27 -0600 Seb <[email protected]> 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
_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english