From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16224 Path: news.gmane.org!not-for-mail From: Seb Newsgroups: gmane.emacs.gnus.user Subject: Re: nnimap splitting emacs 24, does not split Date: Sun, 07 Apr 2013 13:35:23 -0500 Organization: Church of Emacs Message-ID: <87k3oenq8k.fsf@kolob.subpolar.dyndns.org> References: <86y5n0q4j8.fsf@member.fsf.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365359785 31284 80.91.229.3 (7 Apr 2013 18:36:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Apr 2013 18:36:25 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sun Apr 07 20:36:28 2013 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UOuRx-00034J-Ib for gegu-info-gnus-english@m.gmane.org; Sun, 07 Apr 2013 20:36:21 +0200 Original-Received: from localhost ([::1]:34425 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOuRx-0005S6-7F for gegu-info-gnus-english@m.gmane.org; Sun, 07 Apr 2013 14:36:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOuRh-0005Ah-Bw for info-gnus-english@gnu.org; Sun, 07 Apr 2013 14:36:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UOuRY-0005a9-T2 for info-gnus-english@gnu.org; Sun, 07 Apr 2013 14:36:05 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UOuRY-0005a3-Ko for info-gnus-english@gnu.org; Sun, 07 Apr 2013 14:35:56 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UOuRX-0002Tg-3s for info-gnus-english@gnu.org; Sun, 07 Apr 2013 20:35:55 +0200 Original-Received: from s0106c8d719636840.wp.shawcable.net ([24.77.164.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Apr 2013 20:35:55 +0200 Original-Received: from spluque by s0106c8d719636840.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Apr 2013 20:35:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 78 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: s0106c8d719636840.wp.shawcable.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:3cgVpzhGHzuDIxFTBeAHnIJK1+o= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16224 Archived-At: On Tue, 03 Jul 2012 08:54:03 -0600, Damon Haley 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