From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83186 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: isync plus dovecot? Date: Tue, 21 May 2013 09:35:17 +0800 Message-ID: <87mwrpdsiy.fsf@ericabrahamsen.net> References: <874ne3xwpu.fsf@ericabrahamsen.net> <87vc6dy2x8.fsf@mid.raines.me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369100255 18758 80.91.229.3 (21 May 2013 01:37:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 May 2013 01:37:35 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31452@lists.math.uh.edu Tue May 21 03:37:34 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UebW7-000092-Ru for ding-account@gmane.org; Tue, 21 May 2013 03:37:32 +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 1UebUh-00006I-Kp; Mon, 20 May 2013 20:36:03 -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 1UebUe-00005x-Ga for ding@lists.math.uh.edu; Mon, 20 May 2013 20:36:00 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1UebUX-0004GN-Ve for ding@lists.math.uh.edu; Mon, 20 May 2013 20:35:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UebUV-00032c-UU for ding@gnus.org; Tue, 21 May 2013 03:35:51 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UebUV-0007v0-1e for ding@gnus.org; Tue, 21 May 2013 03:35:51 +0200 Original-Received: from 114.252.246.48 ([114.252.246.48]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 May 2013 03:35:51 +0200 Original-Received: from eric by 114.252.246.48 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 May 2013 03:35:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 67 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.252.246.48 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:fKFlhAzdq6Dk/apARVZ2z6N6mXM= X-Spam-Score: 0.2 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-64--470h-0s--0d--H*u:Emacs, 0.000-40--292h-0s--0d--H*u:Gnus, 0.000-40--292h-0s--0d--H*UA:Gnus, 0.000-39--281h-0s--0d--H*u:linux, 0.000-39--281h-0s--0d--H*UA:linux Spam tokens: 0.993-2869--113h-12238s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.991-7830--433h-33913s--0d--HTo:D*gnus.org, 0.990-8214--458h-35593s--0d--H*RU:quimby.gnus.org, 0.989-8128--544h-35594s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.989-8128--544h-35594s--0d--H*RT:80.91.231.51 Autolearn status: no -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.229.3 listed in list.dnswl.org] 2.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -1.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83186 Archived-At: Drew Raines writes: > Eric Abrahamsen wrote: > >> I'm finally trying to ditch nnml for mail reading, and move to >> imap. Offlineimap plus dovecot seems to be a popular solution (I >> am offline a lot), but I also saw a lot of complaints about >> offlineimap, and the suggestion of isync/mbsync as a replacement. >> >> Has anyone done that? I realize this isn't quite a gnus question, >> but I'm having a bit of trouble wrapping my head around this, and >> google isn't helping any. > > I'm using mbsync. I finally switched from offlineimap a year ago > after it got into a state that I couldn't fix. > > My setup is: > > Gmail <-> mbsync <-> dovecot <-> nnimap > > dovecot essentially serves as a cache, with mbsync running every few > minutes in a separate process. Even though g-g-get-new-news is > pretty speedy (5-30s), I still use a dedicated Emacs for Gnus. It > still talks over the Internet to Gmane. I used to use gnus-agent > with nnimap and it worked fine. Now I only use it with nntp. > > I haven't had any major issues with mbsync. A couple of times it has > gotten wedged from an unreliable network connection but I was able to > recover by deleting its local state. It hasn't caused any headaches > for me. This is isync 1.0.4 on Debian Wheezy. > > Happy to share more details if it would help! Thanks for this! So your .mbsyncrc has something like this, right? MaildirStore account-local Path = ~/Maildir/account/ Inbox ~/Maildir/account/Inbox and then in your gnus select methods: (nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir/") Is that how you do it? The offlineimap examples I've seen have offlineimap delivering to dovecot, and gnus reading from dovecot. The above would have mbsync delivering to a maildir directly, and then dovecot reading from that. I'm not familiar enough with how this works to know if that's right. And three days of mail syncing seems like a long time just to test a setup that's wrong to begin with! The other question I've got regards multiple accounts, either offlineimap or mbsync. Multi-account examples I've seen have offlineimap using a separate local repository for each account, so you end up with: $HOME/Maildir/account1/{cur,new,tmp,etc,etc} $HOME/Maildir/account2/{cur,new,tmp,etc,etc} $HOME/Maildir/account3/{cur,new,tmp,etc,etc} But in my gnus configuration, I only seem to be able to pass one value to the "-o mail_location" invocation, and it doesn't recurse into subdirectories. Can I dump multiple accounts into a single local repository? Or somehow tell dovecot to check multiple directories? Almost done, I swear... Thanks! Eric