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

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

Re: nnimap splitting emacs 24, does not split


From: Seb
Subject: Re: nnimap splitting emacs 24, does not split
Date: Tue, 09 Apr 2013 08:25:06 -0500

On Sun, 07 Apr 2013 13:35:23 -0500,
Seb <spluque@gmail.com> wrote:

> I've recently moved to Emacs 24 (GNU Emacs 24.3.50.1
> (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-03 on dex,
> modified by Debian, which ships Gnus v5.13.  It does seem like all I
> needed to do was to replace the variables as you suggest, but somehow
> all my mail is now landing in INBOX, whereas before upgrading it was
> going to the respective groups as specified by `nnimap-split-fancy'
> (now `nnmail-split-fancy).

> I'm using a local IMAP dovecot server, which receives mail from
> various sources collected by fetchmail:

> (setq gnus-select-method
>            '(nnimap "sluque"
>                     (nnimap-address "my.dovecot.com")
>                     (nnimap-stream ssl)))

> and below is my `nnmail-split-fancy' rules:

> (require 'spam)
> (setq spam-split-group "SPAM"
>       spam-use-regex-headers t
>       spam-use-bogofilter t
>       nnmail-split-methods 'nnmail-split-fancy
>       nnimap-split-methods 'nnmail-split-fancy
>       nnimap-split-inbox '("INBOX")
>       nnmail-mail-splitting-decodes t
>       nnmail-split-fancy
>       '(| (: spam-split 'spam-use-regex-headers)
>         (from ".*dovecot.*" "System")
>         (to ".*ecolog-l.*" "Ecolog-L")
>         (from ".*mammal-l.*" "Mammal-L")
>         (to ".*mammal-l.*" "Mammal-L")
>         (: spam-split)))
> (spam-initialize)

> It seems as though the rules are now never matching anythiing, so all
> my mail ends up in the specified `nnimap-split-inbox'.  Has there been
> a change in how these splits should be specified? Thanks.

In case someone is experiencing the same, I found a solution after
experimenting.

I moved server variables to the definition of the IMAP select method,
and removed `nnimap-split-fancy':

---<--------------------cut here---------------start------------------->---
(require 'spam)
(setq spam-split-group "SPAM"
      spam-use-regex-headers t
      spam-use-bogofilter t
      nnmail-mail-splitting-decodes t
      nnmail-split-methods 'nnmail-split-fancy
      nnmail-split-fancy
      '(| (: spam-split 'spam-use-regex-headers)
          (from ".*dovecot.*" "System")
          (to ".*ecolog-l.*" "Ecolog-L")
          (from ".*mammal-l.*" "Mammal-L")
          (to ".*mammal-l.*" "Mammal-L")
          (: spam-split))
      gnus-select-method
      '(nnimap "sluque"
               (nnimap-address "kolob.subpolar.dyndns.org")
               (nnimap-stream ssl)
               (nnimap-inbox "INBOX")
               (nnimap-split-methods default)))
 (spam-initialize)
---<--------------------cut here---------------end--------------------->---


-- 
Seb




reply via email to

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