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: Tue, 09 Apr 2013 08:25:06 -0500	[thread overview]
Message-ID: <87ip3vygy5.fsf@kolob.subpolar.dyndns.org> (raw)
In-Reply-To: <87k3oenq8k.fsf@kolob.subpolar.dyndns.org>

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	other threads:[~2013-04-09 13:25 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
2013-04-09 13:25     ` Seb [this message]

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=87ip3vygy5.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).