From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69881 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Avoid opening secondary select methods as foreign servers Date: Sun, 08 Aug 2010 15:59:14 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87vd7lp5n1.fsf@topper.koldfront.dk> References: <87fwzwfi5l.fsf@topper.koldfront.dk> <87bpakfhtg.fsf@topper.koldfront.dk> <8739vwupt4.fsf_-_@topper.koldfront.dk> <87eif1kgtt.fsf@topper.koldfront.dk> <877hk7cy14.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1281276045 25977 80.91.229.12 (8 Aug 2010 14:00:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Aug 2010 14:00:45 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18268@lists.math.uh.edu Sun Aug 08 16:00:44 2010 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 1Oi6Qd-0002Rm-A2 for ding-account@gmane.org; Sun, 08 Aug 2010 16:00:43 +0200 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 1Oi6PP-0006AB-3t; Sun, 08 Aug 2010 08:59:27 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Oi6PN-00069x-2R for ding@lists.math.uh.edu; Sun, 08 Aug 2010 08:59:25 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Oi6PK-0005j3-Jm for ding@lists.math.uh.edu; Sun, 08 Aug 2010 08:59:24 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Oi6PJ-0001fR-00 for ; Sun, 08 Aug 2010 15:59:21 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oi6PJ-00020Y-Qr for ding@gnus.org; Sun, 08 Aug 2010 15:59:21 +0200 Original-Received: from 2505ds5-by.0.fullrate.dk ([95.166.24.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Aug 2010 15:59:21 +0200 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Aug 2010 15:59:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 78 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69881 Archived-At: On Tue, 03 Aug 2010 14:10:47 -0500, Ted wrote: > It seems OK to me but I haven't seen the problem you are fixing so I > can't verify it works. Has anyone? Can you explan how to trigger the > bug? This turned out to be harder than I expected. My newsgroups and configuration have developed over time... However, here is the best recipe I could come up with: a) Start with an empty setup - no .newsrc*, Mail/ News/ b) Add a .gnus file with this content: ; No primary server: (setq gnus-select-method '(nnnil)) and start Gnus. c) Use B to browse news.gmane.org and subscribe to three newsgroups. d) Quit Gnus and emacs, and change .gnus to this: ; No primary server: (setq gnus-select-method '(nnnil)) ; Access news.gmane.org via nntps: (setq gnus-secondary-select-methods '((nntp "news.gmane.org" (nntp-record-commands t) (nntp-open-connection-function nntp-open-tls-stream) (nntp-port-number 563) (nntp-address "snews.gmane.org")))) I.e. decide to go from a foreign server to a secondary one. e) Start emacs and Gnus. If you go to the server buffer, you'll see: {nnfolder:archive} (closed) {nndoc:gnus-help} (opened) {nntp:news.gmane.org} (denied) {nntp:news.gmane.org} (denied) And the gnus-opened-servers variable looks like this: Value: (((nndoc "gnus-help" (nndoc-address "/home/test/elisp/gnus/etc/gnus-tut.txt") (nndoc-article-type mbox)) ok) ((nntp "news.gmane.org") denied) ((nntp "news.gmane.org" (nntp-record-commands t) (nntp-open-connection-function nntp-open-tls-stream) (nntp-port-number 563) (nntp-address "snews.gmane.org")) denied)) TWO news.gmane.org entries, one with and one without the configuration. A couple of weird things: In my usual setup, the news.gmane.org server without configuration is NOT denied, it just connects unencrypted. I had to do the foreign server dance to get .newsrc.eld to contain (nntp "news.gmane.org") instead of "nntp:gmane.org" - the latter is used if the server is defined as a secondary method when subscribing, the former if the server is foreign when subscribing. I may be able to simply solve my problem by doing a search and replace on (nntp "news.gmane.org") to "nntp:news.gmane.org" in my .newsrc.eld, and maybe that is the correct solution... I think I just confused myself. Best regards, Adam -- "May the force be... Adam Sjøgren ... equal to mass · acceleration" asjo@koldfront.dk