From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83343 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: Re: isync plus dovecot? Date: Sun, 16 Jun 2013 11:49:30 -0700 Message-ID: References: <874ne3xwpu.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371408823 28685 80.91.229.3 (16 Jun 2013 18:53:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Jun 2013 18:53:43 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31607@lists.math.uh.edu Sun Jun 16 20:53:44 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 1UoI58-0007qp-Tc for ding-account@gmane.org; Sun, 16 Jun 2013 20:53:43 +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 1UoI3S-0000XP-EZ; Sun, 16 Jun 2013 13:51:58 -0500 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 1UoI3P-0000X8-Hf for ding@lists.math.uh.edu; Sun, 16 Jun 2013 13:51:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1UoI3N-0008AT-QH for ding@lists.math.uh.edu; Sun, 16 Jun 2013 13:51:55 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UoI3L-0001u9-RZ for ding@gnus.org; Sun, 16 Jun 2013 20:51:51 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UoI3J-0004ic-Li for ding@gnus.org; Sun, 16 Jun 2013 20:51:49 +0200 Original-Received: from 107-219-149-247.lightspeed.sntcca.sbcglobal.net ([107.219.149.247]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Jun 2013 20:51:49 +0200 Original-Received: from dave by 107-219-149-247.lightspeed.sntcca.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Jun 2013 20:51:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 91 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 107-219-149-247.lightspeed.sntcca.sbcglobal.net User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.93 (darwin) Cancel-Lock: sha1:vteqRzP1Camp5fCLffIBS8FuGbE= X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83343 Archived-At: on Wed May 15 2013, 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. > > Specifically, you tell offlineimap to deliver to dovecot with a line > like: > > preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir > > I can't find the equivalent command for mbsync. I don't know if it's > possible, and worse I don't really understand what's going on well > enough to really figure it out logically. > > Is it enough just to have mbsync dump to a Maildir directly, and then > tell gnus to access that maildir via dovecot? > > Any pointers very welcome! This may be cominig very late, but: http://onmsg.github.com might still be of some use to you. I haven't touched the stuff in some time now, but it still works great for me. Here's my fairly-complicated .mbsyncrc, including the preauth tunneling thing: --8<---------------cut here---------------start------------->8--- IMAPAccount boostpro-gmail-account Host imap.gmail.com User dave@boostpro.com UseIMAPS yes # RequireSSL yes CertificateFile ~/.certs/imap.gmail.com.pem Pass "################" IMAPStore boostpro-gmail-store Account boostpro-gmail-account IMAPAccount local-dovecot Host localhost User dave Tunnel /opt/local/libexec/dovecot/imap IMAPStore local-dovecot-store Account local-dovecot Channel boostpro-active-channel Master :boostpro-gmail-store: Slave :local-dovecot-store: Patterns "INBOX" "travel" "apple" Create Both # Sync ReNew Delete Flags Expunge Both SyncState ~/Library/Data/mbsync/boostpro-gmail-sync-state/ Channel boostpro-list-channel Master :boostpro-gmail-store: Slave :local-dovecot-store: Patterns "committee" Create Slave Sync New Flags SyncState ~/Library/Data/mbsync/boostpro-gmail-sync-state/ Channel boostpro-gmail-channel Master :boostpro-gmail-store: Slave :local-dovecot-store: Patterns "[Gmail]/All Mail" "committee" Create Slave Sync New SyncState ~/Library/Data/mbsync/boostpro-gmail-sync-state/ Channel boostpro-spam-channel Master :boostpro-gmail-store: Slave :local-dovecot-store: Patterns "[Gmail]/Spam" Create Master Sync Push SyncState ~/Library/Data/mbsync/boostpro-gmail-sync-state/ --8<---------------cut here---------------end--------------->8--- -- Dave Abrahams