From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: Re: Avoid opening secondary select methods as foreign servers
Date: Sun, 08 Aug 2010 15:59:14 +0200 [thread overview]
Message-ID: <87vd7lp5n1.fsf@topper.koldfront.dk> (raw)
In-Reply-To: <877hk7cy14.fsf@lifelogs.com>
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
next prev parent reply other threads:[~2010-08-08 13:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 20:51 Setting gnus-check-new-newsgroups to nil --> gnus-secondary-select-methods ignored Adam Sjøgren
2010-07-06 20:58 ` Adam Sjøgren
2010-07-06 23:57 ` [PATCH] Avoid opening secondary select methods as foreign servers Adam Sjøgren
2010-07-17 20:13 ` Adam Sjøgren
2010-08-03 19:10 ` Ted Zlatanov
2010-08-08 13:59 ` Adam Sjøgren [this message]
2010-08-08 14:14 ` Adam Sjøgren
2010-08-09 14:12 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vd7lp5n1.fsf@topper.koldfront.dk \
--to=asjo@koldfront.dk \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).