From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69832 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: (gnus-summary-goto-article ) extremely slow for certain IMAP server Date: Mon, 26 Jul 2010 21:43:02 +0200 Message-ID: <201007262143.28216.tassilo@member.fsf.org> References: <201007262042.04971.tassilo@member.fsf.org> <87pqyayrfy.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280173446 21190 80.91.229.12 (26 Jul 2010 19:44:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2010 19:44:06 +0000 (UTC) Cc: ding@gnus.org, =?iso-8859-1?q?S=E9bastien_Vauban?= , David Maus To: David Engster Original-X-From: ding-owner+M18222@lists.math.uh.edu Mon Jul 26 21:44:02 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 1OdTaf-0005ZV-52 for ding-account@gmane.org; Mon, 26 Jul 2010 21:43:57 +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 1OdTaJ-0000se-Hf; Mon, 26 Jul 2010 14:43:35 -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 1OdTaI-0000sR-9k for ding@lists.math.uh.edu; Mon, 26 Jul 2010 14:43:34 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OdTaG-0001lz-Hd for ding@lists.math.uh.edu; Mon, 26 Jul 2010 14:43:33 -0500 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OdTaF-0001l7-00 for ; Mon, 26 Jul 2010 21:43:31 +0200 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id A157516D4E4; Mon, 26 Jul 2010 15:43:30 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 26 Jul 2010 15:43:30 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=from:to:subject:date:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; s=smtpout; bh=AIpDg+YxKGp7Bglm2WyjBaa2IQE=; b=qVF9bEQqFReKnwUxVn7UeUuKgABFJ/rGrhLkZQAhX73SryxQb3Dx+soL54/bgeQ3bxGkV5LdZTieOxeAUgKJJSPNyAQjvMIz0fF12iZVNcz2U6McD2RvvVrj3CkaFo/+A6ygIZoFlQhToo+11OzcEhzqdJA62V94s0WJHZFKra8= X-Sasl-enc: m5UR+wPW4DmjqFACG7jUcG1B1N5ArgN3ZpgGLz1qN4bp 1280173410 Original-Received: from thinkpad.localnet (p54AF1E01.dip0.t-ipconnect.de [84.175.30.1]) by mail.messagingengine.com (Postfix) with ESMTPSA id 0C3014E8571; Mon, 26 Jul 2010 15:43:30 -0400 (EDT) User-Agent: KMail/1.13.5 (Linux/2.6.35-rc6-git1; KDE/4.4.5; x86_64; ; ) In-Reply-To: <87pqyayrfy.fsf@randomsample.de> X-Face: `TY6r/ws=N5uqO1E`M=Sups<}n%T[E^o_?MJj Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69832 Archived-At: On Monday 26 July 2010 21:27:13 David Engster wrote: > > We've edebugged and profiled the gnus code, and the culprit is the > > function `nnimap-request-article-part'. When given a message-id instead > > of an article number, that function will query the IMAP server with > > `imap-search', and then emacs hangs 5 minutes till the server finally > > responds. > > > > Ok, it's basically the server's fault,=20 >=20 > Yes. An IMAP server should be able to retrieve articles based on > message-id's very quickly, since this is a pretty common task. That's my impression, too. But at least S=E9bastiens Courier server seems to think otherwise. Maybe it's only some config option the admins need to enable, who knows... > > but can't Gnus do any better? Especially, the mapping message-id to > > article number is also contained in the .overview file of the group, > > but it seems that this file is not checked. >=20 > Yes. You could use nnimap-retrieve-headers-from-file and check if you > find the MID there. Hm, ok. How do I get server for a given nnimap+Foo:some.group spec? `gnus-group-server'? > > Or can this call to `imap-search' somehow be omitted by optional > > Gnus features like the gnus registry? >=20 > Probably, but currently the registry does not keep track of the > article numbers, only of the groups. I guess this could easily be > added, though? >=20 > But why don't you just save the article number together with the > message-id in the link? Because article numbers can change on editable backends, for examply by moving mail back and forth to other groups. Bye, Tassilo