Accessing discourse list via nntp

I read the racket mailing lists via nntp via gmane.io

Could the discourse lists be setup to at least allow reading via nntp (I think writing ends up being like writing to the maiuling list - ie the poster has to register their mailling address - but I accept that I might have missed something and accept this would be read only)

Thanks
Mark

1 Like

Hi Mark,
Are you suggesting a non-person user is set up on discourse that emails posts to a specific address?

I can’t make any promises but if you could do the nntp side I could try set up the account.

Can you let me know what email address to use?

Best wishes

Stephen

I don't need to do the nntp side - gmane.io does it all for you.

The mailing list needs to be registered at https://admin.gmane.io/

Looking at the questions they ask - I don't know what the mailling list software would be.

It doesn’t look like it is supported. I’ve done a search and this issue has come up a handful of times; plone in 2017; Julia in 2016. In all cases it seemed to dead end.

If you can identify a solution I’d be happy to try get it in place.

I did find out that Discourse supports RSS and JSON feeds;

Some nntp clients also support RSS (e.g. Mozilla Thunderbird) so maybe that is an option for the client you use?

If you are using Emacs you could use Elfeed: https://www.emacswiki.org/emacs/Elfeed

The addresses are;

https://racket.discourse.group/posts.rss
https://racket.discourse.group/latest.rss

I believe you can also track topics (posts and replies), categories, and tags by adding .json or .rss to the end of the URL:

https://racket.discourse.group/c/show-and-tell/7.json
https://racket.discourse.group/t/accessing-discourse-list-via-nntp/515/3.json

https://racket.discourse.group/posts.json
https://racket.discourse.group/latest.json

I'm sorry I don't have a better answer right now.

Best wishes,

Stephen

1 Like

To inspect

#lang racket/base
(require net/url json)
(call/input-url
 (string->url "https://racket.discourse.group/latest.json")
 get-pure-port
 read-json)
1 Like

Nice! That's going above and beyond.