From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Kyle Meyer Newsgroups: gmane.emacs.bugs Subject: bug#41960: nntp.el: Switch back to CAPABILITIES command? Date: Sat, 20 Jun 2020 02:33:25 +0000 Message-ID: <87sgeqbh56.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="50798"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen To: 41960@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 20 04:34:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmTKd-000D4T-Jr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jun 2020 04:34:12 +0200 Original-Received: from localhost ([::1]:32968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmTKc-0008Hv-2g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Jun 2020 22:34:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmTKU-0008Hb-EA for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 22:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmTKU-0002V3-59 for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 22:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jmTKU-0006aZ-0P; Fri, 19 Jun 2020 22:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kyle Meyer Original-Sender: "Debbugs-submit" Resent-CC: larsi@gnus.org, bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jun 2020 02:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41960 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Lars Ingebrigtsen Original-Received: via spool by submit@debbugs.gnu.org id=B.159262041925295 (code B ref -1); Sat, 20 Jun 2020 02:34:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jun 2020 02:33:39 +0000 Original-Received: from localhost ([127.0.0.1]:57127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmTK3-0006Zs-Tc for submit@debbugs.gnu.org; Fri, 19 Jun 2020 22:33:39 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:59886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmTJz-0006Zg-4x for submit@debbugs.gnu.org; Fri, 19 Jun 2020 22:33:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmTJy-0007nS-Qg for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 22:33:30 -0400 Original-Received: from pb-smtp2.pobox.com ([64.147.108.71]:54670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmTJw-0002Q8-Gi for bug-gnu-emacs@gnu.org; Fri, 19 Jun 2020 22:33:30 -0400 Original-Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id BB2AB77435 for ; Fri, 19 Jun 2020 22:33:26 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:mime-version:content-type; s=sasl; bh=g /D57stq2PDVp58rSxxB55W25Rk=; b=ty5vsQJY5vbz+SrinYJV7onETBW/oW2w7 yWADDMC3l7fDGRwdEuEE+KtHEcs4bQGusW6kbPlq8CT2MDdyY/4LTkU2VxW8/Ekt VIPRKJYl7yMFRwmng+eRUAJX/D366fYpm8KObxjesEIA8bBfonDsqJgmrfqb4+cS UefvvqQDP4= Original-Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id B44B977434 for ; Fri, 19 Jun 2020 22:33:26 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:subject:date:message-id:mime-version:content-type; s=mesmtp; bh=lUhTRPHig1zCro2TLMlanPzdnUG/o4fj2YK6f+MtHLk=; b=ov/UCpBxFwfhTiIhhDcpToI15omBoAiXT4bODTJfGSwSd2kimSXtPWkO3aRmJnoz9ze/As8wDRaEfL6Zb26+gIOd9ZQfO/UZTHuFai8gz66/8VxfDsaFZ2hRrD52ajWa0HYS/0B8UJn5a912p0eJOB6bWAL6jy0zD0cMPNyGd1c= Original-Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 4087477433 for ; Fri, 19 Jun 2020 22:33:26 -0400 (EDT) (envelope-from kyle@kyleam.com) X-Pobox-Relay-ID: 6B49BD50-B29E-11EA-8617-D1361DBA3BAF-24757444!pb-smtp2.pobox.com Received-SPF: pass client-ip=64.147.108.71; envelope-from=kyle@kyleam.com; helo=pb-smtp2.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/19 22:33:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182192 Archived-At: In Emacs 24.4 [0], the command used in nntp.el for detecting NNTP capabilities changed from CAPABILITIES to HELP to work around an issue with a particular news server not recognizing the CAPABILITIES command (bug#12763). This probably works most the time because, according the RFC 3977 [1], it is "customary for [HELP] to list the valid commands and give a brief definition of what they do". However, that same section says HELP shouldn't be used as a replacement for CAPABILITIES. A specific case where using HELP instead of CAPABILITIES causes an issue is with public-inbox's [2] NNTP service, such as the one hosted at . public-inbox doesn't include a list of commands in its HELP output. That is, it's not following the convention, but it is still following the specification. Because nntp-open-connection tries to detect capabilities with HELP, it doesn't catch the properly advertised STARTTLS capability and fails to upgrade to a TLS connection. I'm guessing that the server from bug#12763 didn't recognize CAPABILITIES because it was based on RFC 977. However, given RFC 3977 supersedes 977 and is from 2006, does it make sense at this point to assume CAPABILITIES is supported? [0] b9989bfa7e59b423df76b184e657b66017f72ff9 lisp/gnus/nntp.el (nntp-open-connection): Fix nntp connection problems with the Typhoon server 2012-12-28 [1] https://tools.ietf.org/html/rfc3977#section-7.2 [2] https://public-inbox.org/