From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#30022: gnus nnimap-sequence vs yahoo hang Date: Fri, 13 Apr 2018 13:41:08 +0200 Message-ID: <87k1tb9vvv.fsf@mouse.gnus.org> References: <87wp0svqgr.fsf@blah.blah> <87efjlzcda.fsf@mouse.gnus.org> <87d0z3mqwh.fsf@blah.blah> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1523619609 16446 195.159.176.226 (13 Apr 2018 11:40:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2018 11:40:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 30022@debbugs.gnu.org To: Kevin Ryde Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 13 13:40:05 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6x3j-00048h-7a for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Apr 2018 13:40:03 +0200 Original-Received: from localhost ([::1]:46587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6x5p-0000Bo-MP for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Apr 2018 07:42:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6x5j-0000BW-Bz for bug-gnu-emacs@gnu.org; Fri, 13 Apr 2018 07:42:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6x5g-0004Wq-9F for bug-gnu-emacs@gnu.org; Fri, 13 Apr 2018 07:42:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6x5g-0004Wk-5A for bug-gnu-emacs@gnu.org; Fri, 13 Apr 2018 07:42:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f6x5d-0002FG-Ud; Fri, 13 Apr 2018 07:42:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 13 Apr 2018 11:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30022 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 30022-submit@debbugs.gnu.org id=B30022.15236196798577 (code B ref 30022); Fri, 13 Apr 2018 11:42:01 +0000 Original-Received: (at 30022) by debbugs.gnu.org; 13 Apr 2018 11:41:19 +0000 Original-Received: from localhost ([127.0.0.1]:49146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6x4x-0002EH-7N for submit@debbugs.gnu.org; Fri, 13 Apr 2018 07:41:19 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:49327) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6x4v-0002E9-DC for 30022@debbugs.gnu.org; Fri, 13 Apr 2018 07:41:17 -0400 Original-Received: from 46.67.12.60.tmi.telenormobil.no ([46.67.12.60] helo=corrigan) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1f6x4s-0000v2-Gt; Fri, 13 Apr 2018 13:41:16 +0200 Original-Received: from larsi by corrigan with local (Exim 4.89) (envelope-from ) id 1f6x4m-0007pr-E3; Fri, 13 Apr 2018 13:41:08 +0200 In-Reply-To: <87d0z3mqwh.fsf@blah.blah> (Kevin Ryde's message of "Fri, 13 Apr 2018 18:50:22 +1000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:145246 Archived-At: Kevin Ryde writes: > Yes, I see similar > > 18:16:44 [imap.mail.yahoo.com] (inhibited) > 18:16:44 [imap.mail.yahoo.com] 2 CAPABILITY^M > 18:16:50 [imap.mail.yahoo.com] 3 SELECT "INBOX"^M > > But I think this does not include output of open-protocol-stream > :capability-command "1 CAPABILITY" (in nnimap-open-connection-1). Oh, I see. Well spotted. I think the simplest solution here is to start off the nnimap sequence at a higher number so that these things don't get in each others way. Does the following patch (pushed to Emacs master now) fix the problem for you? diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 01d7948afb..65d40eba69 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el @@ -1865,7 +1865,7 @@ nnimap-find-connection (setq nnimap-connection-alist (delq entry nnimap-connection-alist)) nil)))) -(defvar nnimap-sequence 0) +(defvar nnimap-sequence 5) (defun nnimap-send-command (&rest args) (setf (nnimap-last-command-time nnimap-object) (current-time)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no