Gnus development mailing list
 help / color / mirror / Atom feed
* nntp select method syntax
@ 2020-09-18  9:15 Kevin Shell
  2020-09-18  9:25 ` Adam Sjøgren
  2020-09-18 10:45 ` 황병희
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Shell @ 2020-09-18  9:15 UTC (permalink / raw)
  To: ding

Hello list.

What should be used for the second element of nntp select method?
If I use (nntp "NAME" '((nntp-address "SERVER.DOMAIN.TLD"))),
Gnus can't connect,
if I use (nntp "SERVER.DOMAIN.TLD" ...),
Gnus can connect with no problem.

nnimap can use both name and domain with second element.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nntp select method syntax
  2020-09-18  9:15 nntp select method syntax Kevin Shell
@ 2020-09-18  9:25 ` Adam Sjøgren
  2020-09-18 10:53   ` Kevin Shell
  2020-09-18 10:45 ` 황병희
  1 sibling, 1 reply; 4+ messages in thread
From: Adam Sjøgren @ 2020-09-18  9:25 UTC (permalink / raw)
  To: ding

Kevin writes:

> What should be used for the second element of nntp select method?
> If I use (nntp "NAME" '((nntp-address "SERVER.DOMAIN.TLD"))),

You got the syntax wrong. Try removing '( ), i.e.:

  (nntp "NAME" (nntp-address "SERVER.DOMAIN.TLD"))

For example, one of my secondary select methods looks like this:

  (nntp "fb"
        (nntp-open-connection-function nntp-open-tls-stream)
        (nntp-port-number 563)
        (nntp-address "feedbase.org"))


  Best regards,

    Adam

-- 
 "Happiness isn't good enough for me! I demand              Adam Sjøgren
  euphoria!"                                           asjo@koldfront.dk



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nntp select method syntax
  2020-09-18  9:15 nntp select method syntax Kevin Shell
  2020-09-18  9:25 ` Adam Sjøgren
@ 2020-09-18 10:45 ` 황병희
  1 sibling, 0 replies; 4+ messages in thread
From: 황병희 @ 2020-09-18 10:45 UTC (permalink / raw)
  To: The Gnus

Kevin Shell <kshell@gmx.com> writes:

> Hello list.
>
> What should be used for the second element of nntp select method?
> If I use (nntp "NAME" '((nntp-address "SERVER.DOMAIN.TLD"))),
> Gnus can't connect,
> if I use (nntp "SERVER.DOMAIN.TLD" ...),
> Gnus can connect with no problem.
>
> nnimap can use both name and domain with second element.

I don't know Emacs lisp, but following works fine with me.

#+BEGIN_SRC: emacs lisp (~/.gnus)
;;; ^Gmane_^))//
(setq gnus-select-method '(nntp "news.gmane.io"))

;;; Quimby -- Gnus Towers
(setq gnus-secondary-select-methods
      '((nntp "quimby"
	      (nntp-address "quimby.gnus.org"))))

;;; This was the Usenet.
(add-to-list 'gnus-secondary-select-methods
	     '(nntp "september"
		    (nntp-address "news.eternal-september.org")))
#+END_SRC

Sincerely, Gnus fan Byung-Hee

-- 
^고맙습니다 _布德天下_ 감사합니다_^))//


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: nntp select method syntax
  2020-09-18  9:25 ` Adam Sjøgren
@ 2020-09-18 10:53   ` Kevin Shell
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Shell @ 2020-09-18 10:53 UTC (permalink / raw)
  To: ding

Adam Sjøgren <asjo@koldfront.dk> writes:

> Kevin writes:
>
>> What should be used for the second element of nntp select method?
>> If I use (nntp "NAME" '((nntp-address "SERVER.DOMAIN.TLD"))),
>
> You got the syntax wrong. Try removing '( ), i.e.:
>
>   (nntp "NAME" (nntp-address "SERVER.DOMAIN.TLD"))
>
> For example, one of my secondary select methods looks like this:
>
>   (nntp "fb"
>         (nntp-open-connection-function nntp-open-tls-stream)
>         (nntp-port-number 563)
>         (nntp-address "feedbase.org"))
>
>
>   Best regards,
>
>     Adam

Fixed it.
:-) Thanks.
Don't discover the nntp variables are in multiple lists.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-18 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-18  9:15 nntp select method syntax Kevin Shell
2020-09-18  9:25 ` Adam Sjøgren
2020-09-18 10:53   ` Kevin Shell
2020-09-18 10:45 ` 황병희

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).