From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80620 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.gnus.general Subject: Re: recent problem with IMAP counts Date: Tue, 29 Nov 2011 10:14:38 +0100 Organization: The Gnus Project Message-ID: References: <87r50sbfog.fsf@ucl.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1322558174 14599 80.91.229.12 (29 Nov 2011 09:16:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2011 09:16:14 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28902@lists.math.uh.edu Tue Nov 29 10:16:10 2011 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 1RVJnL-000608-4V for ding-account@gmane.org; Tue, 29 Nov 2011 10:16:07 +0100 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 1RVJmy-00029U-Fe; Tue, 29 Nov 2011 03:15:44 -0600 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 1RVJmx-00029M-BF for ding@lists.math.uh.edu; Tue, 29 Nov 2011 03:15:43 -0600 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 1RVJms-0003Rr-QP for ding@lists.math.uh.edu; Tue, 29 Nov 2011 03:15:43 -0600 Original-Received: from smtp.lrde.epita.fr ([163.5.55.2] helo=kualalumpur.lrde.epita.fr) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RVJmg-0004vZ-Of for ding@gnus.org; Tue, 29 Nov 2011 10:15:26 +0100 Original-Received: from uzeb.lrde.epita.fr ([192.168.101.53] helo=uzeb) by kualalumpur.lrde.epita.fr with esmtp (Exim 4.63) (envelope-from ) id 1RVJmb-0007YK-He for ding@gnus.org; Tue, 29 Nov 2011 10:15:21 +0100 Original-Received: by uzeb (Postfix, from userid 17030) id 9FD82C0023; Tue, 29 Nov 2011 10:14:38 +0100 (CET) In-Reply-To: (Didier Verna's message of "Tue, 29 Nov 2011 09:17:31 +0100") User-Agent: Gnus/5.110018 (No Gnus v0.18) XEmacs/21.5-b31 (linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX8/vyhZjl9NwtNDQDw 49b9//35//z+/Pqmf5eyAAACQ0lEQVQ4jW2UsZKjMAyG3SRb22Tmasv3Alj7Auz5hpbGuN0Gp93M wOn175cJSfbmNIzBfOiXLMuYfDcjkmtd7rNazQMUyeeaH2byi83/B+XlsZQXIJsOuJo9QN3B/v13 ULb8jFFegA7Lg5hjrG/bNtc6LfO8LPW5jnNd0/qFF6eKrA+w5UnWjvvxXKsgh/kApzy93Zi5F/Om qSo5pMovT4F/iKxjQ0/QUU/8LpLSZVS5HWx5jd7GEMfVOq9EjGY+LQo6jpw+HFmrxNRF5Kt+rsyB KDgK5EN/SamBP3UGIPhw33kiTx4A1ZxrWUMMPnCEEMEzeoCCjZTVeiDug3XEhCdj2g7LgDmmHPWO FUUjCq7rQBQJCSBCA6xghoPVCfJFgBjwSA0sK5QUEDsQp65GtnMuN3uxWkRS88G5CFDyFaGT7Tlw A2ThE8w2GxTIjkPPHaSIkW9k70yZrvJhf46DJ8eq423AMp2Zqzpc1iEE79hiHaiVA6j1evNdGgeG PxZBFpWiBqBk0wW7oUVCaI8taQBKuhf6KRwoeo1jzSI3DYf6eU2UOkYRevJmkgFBUaAIIYSx0bbV m1KQgnUoa/AMiTZBLGPEaTgODnroiOAsRUuMGAN2zXYhOk3YqxqMzW9tpSRDQgOkZLsmpyDL2k7Q OLYWTHawjEBs5lMRfbVjjCMUBqwD3amNVT/bQStymPZCOddm9y4+1wNMc30hOvm8H876L6j6p7g3 /PM/kndwnOjplL+Z0ePTsjmy2r4B2W97ug39BapeOIXe+G8WAAAAAElFTkSuQmCC X-Face: vW2W-|-I6u.*/s9"K72"'8Tekamc,rnGHz$/~[+f{ks6v Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80620 Archived-At: I found the culprit. The culprit is: didier(pts/0)% git log -1 -p -r 90c1f88e5357d61a732d6f78d3c9a0278d78f49e commit 90c1f88e5357d61a732d6f78d3c9a0278d78f49e (refs/bisect/bad) Author: Lars Magne Ingebrigtsen Date: Thu Jun 30 01:09:38 2011 +0200 Bail out in nnimap if the server has closed the connection. diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 2cfc889..e78c20b 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -1227,6 +1227,10 @@ textual parts.") (deffoo nnimap-finish-retrieve-group-infos (server infos sequences) (when (and sequences + ;; Check that the process is still alive. + (get-buffer-process (nnimap-buffer)) + (memq (process-status (get-buffer-process (nnimap-buffer))) + '(open run)) (nnimap-possibly-change-group nil server)) (with-current-buffer (nnimap-buffer) ;; Wait for the final data to trickle in. But in fact, the problem is more complicated than I thought. I eventually figured out that it's one of my nnimap servers that causes the problem, and the problem exhibits different symptoms before and after this revision of Gnus. I have two nnimap servers in Gnus (one on gmail, the other somewhere else; I think it uses Zimbra). Before this revision of Gnus, it sync'ed with gmail all right at startup, and then it hung on the other server. The minibuffer displayed "Retrieving ... [0%]" flashing and blinking all over the place. I had to C-g on it and only then got my Group buffer. The gmail account had the correct info, but not the other one. Now, with the current HEAD, Gnus startup doesn't hang anymore, but none of the servers get the correct information. If I remove the problematic server from my secondary select methods, everything's fine again. -- Resistance is futile. You will be jazzimilated. Scientific site: http://www.lrde.epita.fr/~didier Music (Jazz) site: http://www.didierverna.com