(setq spam-use-bogofilter t)
(require 'spam)
(setq
nnimap-split-rule 'nnimap-split-fancy
nnimap-split-inbox "INBOX"
nnimap-split-fancy '(|
(: spam-split)
("Texte/theater" "Subject:.*ed harry")
("Texte/mantra" "Subject:.*mantra")
("daily" "Subject:.*daily")
("config" "Subject:.*config")
;; default mailbox
"INBOX"))
(setq gnus-spam-process-destinations
'((".*" "SPAM")))
(setq spam-split-group "SPAM")
As far as I can see spam split works but not splitting mail from my
inbox
harry
1) I think your fancy split rules are wrong. They look like simple
split rules. Look at the nnimap-split-fancy docs.
2) gnus-spam-process-destination doesn't affect splitting, it matters
when you exit a group and you have articles in it that are marked
as spam. They will be processed by the spam backends and then
sent to the spam-process-destination ("SPAM" for all groups in your
setup). There's a similar process for non-spam (ham) articles.
Hope this helps
Ted
> 1) I think your fancy split rules are wrong. They look like simple
> split rules. Look at the nnimap-split-fancy docs.
>
> 2) gnus-spam-process-destination doesn't affect splitting, it matters
> when you exit a group and you have articles in it that are marked
> as spam. They will be processed by the spam backends and then
> sent to the spam-process-destination ("SPAM" for all groups in your
> setup). There's a similar process for non-spam (ham) articles.
>
> Hope this helps
> Ted
Yes, thans, that helped. As spam splitting with bogofilter requires
fancy split rules I changed that in my gnus but did not change the
other splitting rules to fancy split rules. Now I did this, everything
works properly.
harry
> Ted Zlatanov schrieb:
Can someone please show a working example of `nnimap-split-fancy' with
`spam-split' using bogofilter? I have:
---<--------------------cut here---------------start------------------->---
(require 'spam)
(setq spam-split-group "SPAM"
spam-use-bogofilter t
nnimap-split-inbox '("INBOX")
nnimap-split-predicate "UNSEEN"
nnimap-split-rule 'nnimap-split-fancy
nnimap-split-fancy
'(| (from ".*sebmags.homelinux.org.*" "System")
(: spam-split)
"INBOX"))
(spam-initialize)
---<--------------------cut here---------------end--------------------->---
but invariably all messages in INBOX are obliterated completely from the
IMAP server. Any help would be very much appreciated.
Cheers,
--
Seb
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