From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.bugs Subject: bug#18728: 24.0.50; gnus hangs while reading mail from imap server Date: Thu, 16 Oct 2014 09:22:13 -0400 Organization: =?UTF-8?Q?=D0=A2=D0=B5=D0=BE=D0=B4=D0=BE=D1=80_?= =?UTF-8?Q?=D0=97=D0=BB=D0=B0=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= @ Cienfuegos Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413465809 15104 80.91.229.3 (16 Oct 2014 13:23:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2014 13:23:29 +0000 (UTC) Cc: 18728@debbugs.gnu.org To: tsugutomo.enami@jp.sony.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 15:23:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xel1R-0001Io-Ih for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2014 15:23:17 +0200 Original-Received: from localhost ([::1]:50437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xel1R-0002jL-3H for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2014 09:23:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xel1I-0002jB-H9 for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 09:23:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xel1D-0001K4-68 for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 09:23:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xel1D-0001Jy-2E for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 09:23:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xel1C-0005B3-7d; Thu, 16 Oct 2014 09:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ted Zlatanov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 16 Oct 2014 13:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18728 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 18728-submit@debbugs.gnu.org id=B18728.141346574519847 (code B ref 18728); Thu, 16 Oct 2014 13:23:02 +0000 Original-Received: (at 18728) by debbugs.gnu.org; 16 Oct 2014 13:22:25 +0000 Original-Received: from localhost ([127.0.0.1]:45399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xel0X-0005A0-6O for submit@debbugs.gnu.org; Thu, 16 Oct 2014 09:22:25 -0400 Original-Received: from mail-qa0-f53.google.com ([209.85.216.53]:41109) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xel0R-00059n-C5 for 18728@debbugs.gnu.org; Thu, 16 Oct 2014 09:22:19 -0400 Original-Received: by mail-qa0-f53.google.com with SMTP id v10so2304677qac.26 for <18728@debbugs.gnu.org>; Thu, 16 Oct 2014 06:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=uS3+d9F/1J0e9VDN0e3haCDsMGtgqXNb/c/DJ9SIb3U=; b=ixTupyfBX6MxDPjGLz9eeTQSLUOyio7nytAJHbKwqFPFuzi2k7Dk/IZcu1Z8sYDWsm 7H0S4Rx0H3fUXq3m3OW3+tsSf4YXcLNjo3xbT/D2riK8Ui60idOauLrJrZsG7+2dvaWT 2fAGr/qFqTvAIVRcKf+cYdaVrsdrg4fm/Ek8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=uS3+d9F/1J0e9VDN0e3haCDsMGtgqXNb/c/DJ9SIb3U=; b=M4jzUoLIB9/BjKdTYWc25Xp+pQ2FL9rgCSsRjtgbDpqEUnH/AF2CwnmDAAm2y0j60i BvlCBHZgij725FCyJ6JBTGWPeCj+Fy1I9uD+XKj67BhVPQK9OkYSXhYegqnwI4rcfMPU Ffyjl3FUf50lFXKJnBZJ1/7aPkXZBozO+7QhbffAmbgRwZi4Xz9Ymaw/3Xow6FOY0doD vNq7eT8TDZsxc32PU5LDmL1GIAzvmHyHjaQQ66cBwvmZebZptC+gDqnFbxPt/4tA3E22 hFiiejocQFsMZV0sBm64Co+frC51iC+Av/JXxttElhoTNCRB/CL044zB4N0U8YvcI/xT Yjuw== X-Gm-Message-State: ALoCoQnEq9kj+CGIrUBOnhdU6zZXGLKfowO53enm9Mhec8qNhJ7D6ikvWdVfonHa5m/p3EsH8Kpq X-Received: by 10.140.38.8 with SMTP id s8mr2087849qgs.8.1413465734943; Thu, 16 Oct 2014 06:22:14 -0700 (PDT) Original-Received: from bug.local ([198.0.146.153]) by mx.google.com with ESMTPSA id z32sm20929242qgd.40.2014.10.16.06.22.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Oct 2014 06:22:14 -0700 (PDT) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (tsugutomo enami's message of "Wed, 15 Oct 2014 07:56:20 +0900") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94603 On Wed, 15 Oct 2014 07:56:20 +0900 tsugutomo.enami@jp.sony.com wrote: te> The gnus hangs while reading mail from imap server on startup, with te> displaying "nnimap read NNNNNNk" in mini buffer. The amount of NNNNNN te> was about 200Mbytes. ... te> The work around for me was adding code to ignore above NOOP lines in te> nnimap-wait-for-response, as follows: te> --- nnimap.el.orig 2011-06-01 09:27:58.000000000 +0900 te> +++ nnimap.el 2014-10-14 13:56:31.000000000 +0900 te> @@ -1683,7 +1689,8 @@ te> (while (and (not (bobp)) te> (progn te> (forward-line -1) te> - (looking-at "\\*")))) te> + (or (looking-at "\\*") te> + (looking-at "[0-9]+ OK NOOP"))))) te> (not (looking-at (format "%d .*\n" sequence))))) te> (when messagep te> (nnheader-message 7 "nnimap read %dk" (/ (buffer-size) 1000))) te> I guess the NOOP lines are response for the NOOP command sent to keep a te> connection. The gnus version used here is rather old but, at a glance, te> the function in upstream repository is almost same. Could you prepare a patch against Emacs trunk or (preferably) Gnus master[1], incorporating Andreas' suggestion and with a ChangeLog entry? I'll apply it to Gnus master and it will make its way to Emacs trunk shortly thereafter. Thanks Ted [1] http://git.gnus.org/