Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Seb <spluque@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: nnimap splitting emacs 24, does not split
Date: Sun, 07 Apr 2013 13:35:23 -0500	[thread overview]
Message-ID: <87k3oenq8k.fsf@kolob.subpolar.dyndns.org> (raw)
In-Reply-To: <86y5n0q4j8.fsf@member.fsf.org>

On Tue, 03 Jul 2012 08:54:03 -0600,
Damon Haley <dkh@member.fsf.org> wrote:

> pramble@xemaps.com 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 "ding@gnus.org" "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" "list.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 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:

---<--------------------cut here---------------start------------------->---
(setq gnus-select-method
	     '(nnimap "sluque"
		      (nnimap-address "my.dovecot.com")
		      (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
      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)
---<--------------------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.


-- 
Seb

  reply	other threads:[~2013-04-07 18:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-03 11:29 pramble
2012-07-03 14:54 ` Damon Haley
2013-04-07 18:35   ` Seb [this message]
2013-04-09 13:25     ` Seb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3oenq8k.fsf@kolob.subpolar.dyndns.org \
    --to=spluque@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).