Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nnimap split rules

4 views
Skip to first unread message

harry meyers

unread,
Jun 19, 2006, 1:11:30 AM6/19/06
to
I had defined some split rules which splitted my mail from my Inbox
folder properly but stopped working after I added a split rule for spam
with bogofilter. After I tried some different settings now the
according lines look like this:

(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

Ted Zlatanov

unread,
Jun 19, 2006, 10:55:00 AM6/19/06
to

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

harry meyers

unread,
Jun 21, 2006, 1:33:53 AM6/21/06
to

Ted Zlatanov schrieb:

> 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

Seb

unread,
Nov 18, 2009, 10:56:27 PM11/18/09
to info-gnu...@gnu.org
On 20 Jun 2006 22:33:53 -0700,
"harry meyers" <la...@literaturlatenight.de> wrote:

> 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

Ted Zlatanov

unread,
Dec 1, 2009, 4:02:17 PM12/1/09
to
On Wed, 18 Nov 2009 21:56:27 -0600 Seb <spl...@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

0 new messages