From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74696 Path: news.gmane.org!not-for-mail From: Tommy Kelly Newsgroups: gmane.emacs.gnus.general Subject: nnimap splitting examples? Date: Sun, 05 Dec 2010 16:57:41 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291568315 10014 80.91.229.12 (5 Dec 2010 16:58:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Dec 2010 16:58:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23052@lists.math.uh.edu Sun Dec 05 17:58:31 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PPHuw-0006DZ-Er for ding-account@gmane.org; Sun, 05 Dec 2010 17:58:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PPHuP-0005hO-UV; Sun, 05 Dec 2010 10:57:57 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PPHuO-0005hB-8b for ding@lists.math.uh.edu; Sun, 05 Dec 2010 10:57:56 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PPHuM-00023z-QX for ding@lists.math.uh.edu; Sun, 05 Dec 2010 10:57:56 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PPHuM-0001q9-00 for ; Sun, 05 Dec 2010 17:57:54 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PPHuL-0005wG-5J for ding@gnus.org; Sun, 05 Dec 2010 17:57:53 +0100 Original-Received: from cpc2-john3-0-0-cust730.14-1.cable.virginmedia.com ([86.7.2.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Dec 2010 17:57:53 +0100 Original-Received: from tommy.kelly by cpc2-john3-0-0-cust730.14-1.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Dec 2010 17:57:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 60 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc2-john3-0-0-cust730.14-1.cable.virginmedia.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:TynOW5XtEHNtXCro0PDOVdBqh/s= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74696 Archived-At: Would anyone mind sharing the relevant portion of their .gnus for doing nnimap splitting. I've tried to set up as follows but can't get it to work. First, via gmail (authentication is in .authinfo and is working fine). To test that it works I'm simply looking for messages I've sent myself from my non-work address, shown here as personal@gmail.com. Note that I pre-created the gmail label "foobar", and I checked that it's visible in Gnus as group nnimap+gmail:foobar. ;;; start of my stuff (setq gnus-secondary-select-methods '( (nnimap "gmail" (nnimap-address "imap.gmail.com") (nnimap-server-port 993) ) ) ) ;; Splitting (setq nnimap-inbox "nnimap+gmail:INBOX") (setq nnimap-split-methods '(("foobar" "^From:.*personal@gmail.com") ("INBOX" ""))) ;;; end of my stuff So, that doesn't work. The emails in question just end up in INBOX. So, working on the theory that maybe nimap splitting doesn't work on Gmail at all, I tried the following on my own IMAP server, accessed via an ssh tunnel. Again, the relevant folder and Groups arealready in place): ;;; start of my stuff (setq gnus-secondary-select-methods '( (nnimap "tunl" ;; Via a tunnel (nnimap-stream network) ;; Because the default now appears to be SSL? (nnimap-address "localhost") (nnimap-server-port 10143) ) ) ) ;; Splitting (setq nnimap-inbox "nnimap+tunl:INBOX") (setq nnimap-split-methods '(("INBOX.foobar" "^From:.*personal@gmail.com") ("INBOX" ""))) ;;; end my stuff As before, doesn't work. I've used splitting in the past, and used it a lot. But it was a long time ago and was with nnmail and POP. So my lisp may be wrong. Or not. Appreciate any samples that do work for you, or pointers to errors in the above. thanks, Tommy