From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/70476 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: That newfangled IMAP thing... Date: Sat, 04 Sep 2010 21:27:20 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87pqwslybb.fsf@lifelogs.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1283653661 5368 80.91.229.12 (5 Sep 2010 02:27:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 5 Sep 2010 02:27:41 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18851@lists.math.uh.edu Sun Sep 05 04:27:41 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 1Os4xH-0005Uq-AU for ding-account@gmane.org; Sun, 05 Sep 2010 04:27:39 +0200 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 1Os4xD-0000eP-66; Sat, 04 Sep 2010 21:27:35 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Os4xB-0000eC-VI for ding@lists.math.uh.edu; Sat, 04 Sep 2010 21:27:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Os4x7-0000rO-78 for ding@lists.math.uh.edu; Sat, 04 Sep 2010 21:27:33 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Os4x6-0001i8-00 for ; Sun, 05 Sep 2010 04:27:28 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Os4x6-0005SY-AA for ding@gnus.org; Sun, 05 Sep 2010 04:27:28 +0200 Original-Received: from c-24-14-16-248.hsd1.il.comcast.net ([24.14.16.248]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Sep 2010 04:27:28 +0200 Original-Received: from tzz by c-24-14-16-248.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Sep 2010 04:27:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 63 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-24-14-16-248.hsd1.il.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:hSuyLoKHoavjugGbOX/KxEARdzc= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:70476 Archived-At: On Sun, 05 Sep 2010 03:04:26 +0200 Lars Magne Ingebrigtsen wrote: LMI> But I have no idea how it works, really. You point Gnus at an IMAP LMI> server, and then what? How do you tell it how to split your email and LMI> stuff? LMI> What's like the minimal work to do if you have a huge nnmail-split-fancy LMI> rule to go over to being an IMAPper? IMAP is a weird protocol with lots of extensions. It's stateful: you select a mailbox and then you do things in it. You can store or retrieve many types of flags (there's a standard subset). The UIDVALIDITY is a really annoying wrinkle, but explaining it would take a while. One major issue with IMAP is you can't edit articles, only append or delete (which is why `e' doesn't work in nnimap groups). Mailboxes are prefixed and you can find out the server's prefix and path separator. For example Courier uses "INBOX" and "." respectively, so the Maildir path ROOT/a/b/c translates into "INBOX.a.b.c"; I'll use my Courier setup for the rest of this. Splitting from INBOX (usually the incoming mail goes there) is pretty easy as long as you have the server as a primary or secondary. Here's my setup: (defun nnimap-courier-lifelogs-split-fancy () (let ((nnimap-split-fancy nnimap-courier-lifelogs-split-fancy) (spam-split-group "INBOX.spam")) (nnimap-split-fancy))) (setq nnimap-split-rule '( ; ...several servers skipped... ("lifelogs" ("INBOX" nnimap-courier-lifelogs-split-fancy))) nnmail-split-methods 'nnmail-split-fancy nnimap-split-inbox "INBOX" nnimap-courier-lifelogs-split-fancy '(| (: gnus-registry-split-fancy-with-parent) (: spam-split 'spam-use-regex-headers) ; ... (any "cfengine" "INBOX.cfengine") ; ... (: spam-split) ;; default mailbox "INBOX.mail")) I may be forgetting something, but basically you need 1) the nnimap-split-rule for your server 2) the split-inbox "INBOX" 3) the actual split rules and the rest is automatic. I prefer this setup to server-side splitting because of my gnus-registry and spam-split needs. If you need a Courier account I can set you up (but with a Maildir backend it's really trivial to set it up yourself). IMO dovecot is better but I haven't gotten around to switching in years now. GMail's IMAP support is weird: their mailboxes are tags and a message can be in more than one mailbox. HTH Ted