From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73343 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.gnus.general Subject: Re: C-g on IMAP and no such article Date: Wed, 20 Oct 2010 12:32:41 +0200 Message-ID: References: <87wrpf1dh1.fsf@keller.adm.naquadah.org> <87sk031d39.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287570799 13127 80.91.229.12 (20 Oct 2010 10:33:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Oct 2010 10:33:19 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21714@lists.math.uh.edu Wed Oct 20 12:33:17 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 1P8Vyu-0006lR-Mj for ding-account@gmane.org; Wed, 20 Oct 2010 12:33:17 +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 1P8VyT-0003wX-Hc; Wed, 20 Oct 2010 05:32:49 -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 1P8VyR-0003wJ-Hh for ding@lists.math.uh.edu; Wed, 20 Oct 2010 05:32:47 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P8VyQ-0006Cu-Gf for ding@lists.math.uh.edu; Wed, 20 Oct 2010 05:32:47 -0500 Original-Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P8VyP-0001fO-00 for ; Wed, 20 Oct 2010 12:32:45 +0200 Original-Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 2C0F51428A for ; Wed, 20 Oct 2010 12:32:40 +0200 (CEST) Original-Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.72) (envelope-from ) id 1P8VyL-00031d-Os for ding@gnus.org; Wed, 20 Oct 2010 12:32:41 +0200 Mail-Followup-To: ding@gnus.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73343 Archived-At: On Mon, Oct 18 2010, Lars Magne Ingebrigtsen wrote: > There's two ways: Binding `inhibit-quit', and using a `condition-case' > that ignores `quit'. So doing a `debug-on-entry' on, say, > `nnimap-request-article', and you'll see the call tree, and then you can > inspect the tree for those forms... Well, anyhow I've found part of the problem. First, I've set nnimap-fetch-partial-articles and there was a bug I fixed in commit eb6b2e4e9bff924ab4f864323acf973b25643460. Then, there seems to be some=E2=80=A6 race condition. I can bypass the bug = in the debugger, but not without it. When it raises that: Debugger entered--entering a function: * nnimap-get-response(1762) nnimap-command("UID FETCH %d (%s %s)" 26382 "BODY.PEEK[HEADER]" "BODY.PEE= K[1]") nnimap-get-partial-article(26382 ("1") (("text" "plain" ("charset" "us-ascii") nil nil "7bit" 2 1 nil "1" nil nil) [...] ) ... It *seems* that if I wait for the *nnimap* buffer to show the OK response line, the code works fine. However, if I don't, therefore if I'm not in the debugger, it hangs for ever. Note that the nnimap-wait-response loop seems OK since I hitted search-backward a couple of times with it returning nil, and then returning an integer and I was available to execute the whole things without a problem. So far I'm stuck. Another thing I noticed while I'm at it. The message I used to test was compose of a text/plain and a message/rfc822. I had nnimap-fetch-partial-articles set to "text/", and all I got was an empty message, since the sender did not write anything. But I did not had any MIME part buttons, so it was hard to know there was another mime part which was a message/ one. I've added message/ to the nnimap-fetch-partial-articles regexp so I can see it. Maybe there is some code thinking it's useless to show button for such a mime part since we used to always show them inline? I don't know. --=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info