From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86459 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap backend performances ? Date: Thu, 31 Dec 2015 14:07:34 +0800 Message-ID: <87h9iz1789.fsf@ericabrahamsen.net> References: <874mgh1amt.fsf@ericabrahamsen.net> <87twn19hwq.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1451542136 8708 80.91.229.3 (31 Dec 2015 06:08:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2015 06:08:56 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34691@lists.math.uh.edu Thu Dec 31 07:08:45 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aEWPk-0003Sb-U8 for ding-account@gmane.org; Thu, 31 Dec 2015 07:08:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aEWOy-0001dU-05; Thu, 31 Dec 2015 00:07:56 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aEWOv-0001d7-TI for ding@lists.math.uh.edu; Thu, 31 Dec 2015 00:07:53 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aEWOu-00061B-Jr for ding@lists.math.uh.edu; Thu, 31 Dec 2015 00:07:53 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aEWOr-0007UD-Pd for ding@gnus.org; Thu, 31 Dec 2015 07:07:49 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aEWOn-0002hI-BB for ding@gnus.org; Thu, 31 Dec 2015 07:07:45 +0100 Original-Received: from 123.122.35.65 ([123.122.35.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Dec 2015 07:07:45 +0100 Original-Received: from eric by 123.122.35.65 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Dec 2015 07:07:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 84 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.122.35.65 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:hoxk425C/UbKNA6dG5EJ4/pAUoU= X-Spam-Score: -0.1 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86459 Archived-At: On 12/29/15 14:25 PM, myglc2 wrote: > The following message is a courtesy copy of an article > that has been posted to gmane.emacs.gnus.general as well. > > Eric Abrahamsen writes: > >> My understanding is that the nnimap backend was re-written quite >> significantly two or three years ago (?). At any rate, the people who >> used the first iteration and were horrified now seem mostly happy with >> the new version, YMMV. I used to use isync and local dovecot, now use >> the direct connection, and it doesn't kill me. It isn't great (I'm in >> China), but it doesn't kill me. >> >> eric > > So Eric, it sounds like you abandoned ... > > https://ericabrahamsen.net/tech/2014/oct/gnus-dovecot-lucene.html (I didn't see this message show up on the mailing list, but I'm responding to the list anyway, maybe I just missed it.) No, I haven't abandoned that setup! Or rather, I've moved halfway away from it, but I'm going back. I recently switched my two main email accounts from Google Apps to self-hosted, and for the moment I'm having Gnus talk directly to the remote server for the new accounts. Basically I deleted the two Google Apps accounts, but left the corresponding imap accounts on my local Dovecot. I didn't want to move all the old mail into the new accounts, because there's a lot of it. That means I've got two "legacy" accounts for two addresses, which only exist locally, and two "new" accounts for the same two addresses, which only exist on my remote server. At some point I'll explain to my local Dovecot that these are actually four separate imap stores, and start syncing the two new accounts locally, as well. For the time being the two "legacy" accounts are still working just fine with the local Dovecot arrangement, and I should say are much easier to search than the new remote accounts. I want to move back mostly because the connections are still too slow/unstable for my taste. It's not Gnus' fault. > ... which I was following & hit the "plain" auth issue you discussed > ~1yr ago on the isync list. Ugh, I went through a dark period of confusion and despair for a bit there, when I was trying to learn too many new things all at the same time. In fact, I believe the problem was partially solved by upgrading isync (see the later patch posted to that isync thread). I'm now using 1.3.0, what are you using? I need to update the blog post: the ~/.mbsyncrc file syntax changed for the 1.3 version. There's another possibly important difference: 1) /etc/dovecot/dovecot.conf: In the userdb clause, on the "args" line, I've added at the end: username_format=%u 2) /etc/dovecot/passwd: The lines that used to look like eric@ericabrahamsen.net:{PLAIN}passwurd Now look like eric@ericabrahamsen.net:{PLAIN}passwurd:eric@ericabrahamsen.net I think the crux of the problem is that _authentication account_ and _user account_ are actually separate concerns. Either the previous version of isync was doing it wrong, or my dovecot config had to be fixed to separate the two things correctly, or maybe both. To be honest I've forgotten how it works, a bit, and that's the main reason I haven't synced my two new accounts to the local dovecot. I'll try to do that this weekend, and update that blog post! In the meantime, I hope something in here is helpful to you. Eric