Gnus development mailing list
 help / color / mirror / Atom feed
From: Tommy Kelly <tommy.kelly@verilab.com>
To: ding@gnus.org
Subject: nnimap splitting examples?
Date: Sun, 05 Dec 2010 16:57:41 +0000	[thread overview]
Message-ID: <m2y68488e2.fsf@verilab.com> (raw)

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




             reply	other threads:[~2010-12-05 16:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-05 16:57 Tommy Kelly [this message]
2010-12-05 17:03 ` Lars Magne Ingebrigtsen
2010-12-05 17:25   ` Tommy Kelly
2010-12-05 17:27     ` Lars Magne Ingebrigtsen

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=m2y68488e2.fsf@verilab.com \
    --to=tommy.kelly@verilab.com \
    --cc=ding@gnus.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).