From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#19583: nntp-open-server: wrong buffer for nnoo-change-server; breaks url-news Date: Sat, 14 Feb 2015 07:05:59 +0000 Message-ID: <87r3ttc6qw.fsf@violet.siamics.net> References: <874mruy80m.fsf@violet.siamics.net> <87egptgiud.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423897646 21954 80.91.229.3 (14 Feb 2015 07:07:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Feb 2015 07:07:26 +0000 (UTC) To: 19583@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 14 08:07:15 2015 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 1YMWor-0008Ql-V6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 08:07:14 +0100 Original-Received: from localhost ([::1]:58957 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMWor-00014v-0o for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Feb 2015 02:07:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMWol-00013m-9X for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 02:07:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMWog-0000Es-Az for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 02:07:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMWog-0000Ei-7M for bug-gnu-emacs@gnu.org; Sat, 14 Feb 2015 02:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YMWof-0005Za-S9; Sat, 14 Feb 2015 02:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 14 Feb 2015 07:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19583 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: patch Original-Received: via spool by 19583-submit@debbugs.gnu.org id=B19583.142389757621366 (code B ref 19583); Sat, 14 Feb 2015 07:07:01 +0000 Original-Received: (at 19583) by debbugs.gnu.org; 14 Feb 2015 07:06:16 +0000 Original-Received: from localhost ([127.0.0.1]:42632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMWns-0005YU-5e for submit@debbugs.gnu.org; Sat, 14 Feb 2015 02:06:15 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:43660) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YMWnn-0005YJ-44 for 19583@debbugs.gnu.org; Sat, 14 Feb 2015 02:06:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=qDVy4pm29PD3ZAq14k7CoIHzKdKrYDWX+fI5SGs+zq0=; b=qIs+XCyQqjSKRZQj36uFg9oBT1299FVK9yoR7S6I89xmhorbanzl+2dyMowNeGwuKc8n8m58WpP3wfCSuePLkGV5RDkBcP4RACxkMDS/CeQFIsNpcYSqSwPh/wLWFZ8vnzDFWCKYwNArVDGcYIgnmOMTi7HlNGzSmitgckTJkyU=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMWnm-0006s8-Cf for 19583@debbugs.gnu.org; Sat, 14 Feb 2015 07:06:06 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YMWnf-0000rE-Rw for 19583@debbugs.gnu.org; Sat, 14 Feb 2015 14:05:59 +0700 Mail-Followup-To: 19583@debbugs.gnu.org In-Reply-To: <87egptgiud.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Sat, 14 Feb 2015 16:31:06 +1100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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:99355 Archived-At: >>>>> Lars Ingebrigtsen writes: >>>>> Ivan Shmakov writes: >> This affects url-retrieve-synchronously; consider, e. g.: >> (let ((url-news-server "news.gmane.org")) >> (url-retrieve-synchronously "news:87y4p9y2cq.fsf@violet.siamics.net")) >> Please thus consider the patch MIMEd. > I reverted the patch. > With it or without it, the result was the same: URL wasn't able to > retrieve anything but just returned the HTML below. > So there's a bigger problem in this area than just this. The TLS > stuff you point to may be an issue, but I'm not sure how. That=E2=80=99s simple: the TLS stuff there is ought to reject self-signed certificates outright, and news.gmane.org just happens to use one. My guess was that setting nntp-open-connection-function to 'nntp-open-plain-stream should overcome this issue, but it doesn=E2=80=99t. Apparently, the variable gets reset to its =E2=80=9CUse = TLS if supported=E2=80=9D default somewhere in the code (when the server is opened?), but I have little clue as to where that may happen, or where the default is stored, or how do I find it out. This same issue affects Gnus, but is easy to overcome by providing a suitable value to nntp-open-connection-function via the respective select method. [=E2=80=A6] --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A