[Top][All Lists]

[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: Sun, 07 Apr 2013 13:35:23 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

On Tue, 03 Jul 2012 08:54:03 -0600,
Damon Haley <> wrote:

> writes: Hi,

> If you're using fancy splitting with the gnus that ships with emacs
> 24, you probably just need to configure these three variables:

> (setq nnimap-split-methods 'nnmail-split-fancy) (setq
> nnmail-split-abbrev-alist '((any
> . 
> "from\\|to\\|cc\\|sender\\|apparently-to\\|resent-from\\|resent-to\\|resent-cc")
> (mail . "mailer-daemon\\|postmaster\\|uucp") (to
> . "to\\|cc\\|apparently-to\\|resent-to\\|resent-cc") (from
> . "from\\|sender\\|resent-from") (daemon-errors . "Cron
> daemon\\|mailer-daemon") (list
> . "list-id\\|x-mailing-list\\|to\\|cc\\|sender")))

> (setq nnmail-split-fancy '(| ("from" mail (| ("subject" "warn.*"
> "mail.warning") "mail.misc")) (& (| (any "" "list.ding")
> ("subject" "ding" "ding.misc")) ;; Other mailing lists...  ("list-id"
> "conkeror\\.mozdev\\.org" "list.conkeror") (any "infosecnews"
> "list.infosecnews") (any "orgmode" "list.orgmode") (any
> "emacs-orgmode" "list.orgmode") (any "bbdb-info" "list.bbdb-info")
> (any "info-gnus" "") (any "emacs-devel"
> "list.emacs-devel") ) "INBOX.mail.unsorted"))

> In a nutshell, gnus got rid of the old nnimap-split-fancy function
> (used in Emacs 23), so you now need to use nnmail-split-fancy with
> nnimap.

I've recently moved to Emacs 24 (GNU Emacs
(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

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

---<--------------------cut here---------------start------------------->---
(setq gnus-select-method
             '(nnimap "sluque"
                      (nnimap-address "")
                      (nnimap-stream ssl)))
---<--------------------cut here---------------end--------------------->---

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

---<--------------------cut here---------------start------------------->---
(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
      '(| (: 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)))
---<--------------------cut here---------------end--------------------->---

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.


reply via email to

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