9 months ago

nntp/nnrp connector
having some fun playing with it

http://spraci.info/profile/sci.space.news
http://spraci.info/profile/rec.audio.pro

needs work though ...

those two are usenet groupsĀ 

(nntp server is just a local inn2 install and is not peered with anything so posts don't to go out to usenet ..... but they do make it to inn .. and I can see them in a newsreader)

this connector will only forward public posts for obvious reasons

9 comments show more
9 months ago

I was thinking about it being also for people who want to use a (non-usenet) newsgroup as part of the federation/app/subscription mix for their public forum as well as for people wanting to subscribe to a usenet group via Friendica.

Subscribing to arbitrary newsgroups could be possible too if there is a hook for detecting that what was entered is a newsgroup
(whether this is allowed on a site probably should be a choice for the site's admin in the context of what news server they are using. If it is not their own news server there may also be restrictions on what they can do)

I think subscribing to a usenet newsgroup or letting people use a newsreader to read their forum are just two of quite a few possible use cases out there.
It might also interest people running existing forums on other platforms (some of which might have existing connectors for nntp/nnrp), bbs sysops, etc
Like connectivity stuff in general there area probably also use-cases I have not yet thought of.

The newsgroup does not have to be a usenet newsgroup,... show more

9 months ago

As a plugin yes - we would probably need a hook to mod/follow that allows a plugin to say "I recognise that address - I'll handle it.". We currently don't have that.

I think that's the only core change needed. We already have hooks to poll and deliver to arbitrary networks.

That would be pretty easy to add - but if that turned out for some reason not to be possible one could always have a list of subscribed newsgroups in their connector settings.

If you've got github, you could have a branch there that others can look at.

Otherwise a tar file or diffs would give us something to work with.

What library are you using for access? I know that IMAP/c-client (which we use for email) will do it, but it's not the best NNTP library. NNTPConnection_class seems to be much better.