From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Fixing slowness of following Gnus links to IMAP articles Date: Thu, 30 Sep 2010 20:53:01 -0400 Message-ID: <8762xmohsi.fsf@fastmail.fm> References: <87r5jrcx9g.fsf@mundaneum.com> <23154.1279399784@gamaville.dokosmarshall.org> <87zkxpg5cg.fsf@mundaneum.com> <87wrstn4a9.fsf@mundaneum.com> <87fwzf51t1.fsf@thinkpad.tsdh.de> <87d3ujbrwt.wl%dmaus@ictsoc.de> <87wrsrmcnf.fsf@mundaneum.com> <87lj96k6xn.wl%dmaus@ictsoc.de> <87wrsoy5b2.fsf@mundaneum.com> <87aapdzalm.fsf_-_@thinkpad.tsdh.de> <874ofkoekr.wl%dmaus@ictsoc.de> <11714.1280265482@alphaville.usa.hp.com> <87bp9s14nn.fsf@thinkpad.tsdh.de> <87zkxaeo8g.wl%dmaus@ictsoc.de> <87lj8uqi14.fsf@thinkpad.tsdh.de> <87r5ik20us.fsf@mundaneum.com> <87ocd34skq.wl%dmaus@ictsoc.de> <87eid46zm5.fsf@mundaneum.com> <87d3so3ven.wl%dmaus@ictsoc.de> <877hivkj3k.fsf@mundaneum.com> <878w3bjeil.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=60441 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1Ts1-0000X1-EN for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 20:53:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1Ts0-0000cF-4o for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 20:53:05 -0400 Received: from out5.smtp.messagingengine.com ([66.111.4.29]:35274) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1Ts0-0000bv-0u for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 20:53:04 -0400 In-Reply-To: <878w3bjeil.wl%dmaus@ictsoc.de> (David Maus's message of "Thu, 09 Sep 2010 14:19:14 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: =?utf-8?Q?S=C3=A9bastien?= Vauban , emacs-orgmode@gnu.org Hi David, David Maus writes: > S=C3=A9bastien Vauban wrote: >>Hi David, > >>David Maus wrote: >>> S=C3=A9bastien Vauban wrote: >>>> it just perfectly *works*! Great, great feature... Thanks a lot. >>> >>> Sweet! > >>I must add that 14 seconds is the average time for my huge folder. For fo= lder >>of more traditional sizes (less emails), it's more or less instantaneous.= .. > > I suppose (from the timing of the functions) that what takes that long > is Gnus building the view of the folder. > > Just pushed to master. > This commit is incompatible with development Gnus (and, therefore, the Gnus that will be released with Emacs 24). Going forward, nnimap.el no longer has the function nnimap-group-overview-filename. Thus, with the default settings and development gnus, org-follow-link fails on gnus links to imap links. For the time being, could we set the default value of org-gnus-nnimap-query-article-no-from-file to nil? This would allow users of Courier servers and Emacs 23 to gain the speed benefits without causing unexpected problems for users of development Gnus. For reference, here are the full commit details: --8<---------------cut here---------------start------------->8--- commit 6d7b15cf9ff4025c2670e48c08f52e12a8b5928b Author: David Maus Date: Thu Sep 9 14:16:22 2010 +0200 Mitigate access to messages on slow IMAP servers. =20=20=20=20 * org-gnus.el (org-gnus-nnimap-query-article-no-from-file): New customization variable. (org-gnus-nnimap-cached-article-number): New function. (org-gnus-follow-link): Try to fetch cached article number of message-id. =20=20=20=20 Some IMAP servers (e.g. Courier) are slow when searching for a message by its message id header field. Because article numbers in IMAP mailboxes are persistent UIDs, we can try to look up the UID of a IMAP message in Gnus' cache for the mailbox in question and skip the slow search on the server. =20=20=20=20 The problem with slow server was reported by S?bastien Vauban and the patch is based on the work of Tassilo Horn. --8<---------------cut here---------------end--------------->8--- Best, Matt