7 ms·
As I see it, there are two ways to go: * Run an existing news server (INN2 https://www.eyrie.org/~eagle/software/inn/ https://www.eyrie.org/~eagle/software/inn
by asjo 8y ago
As I see it, there are two ways to go:
* Run an existing news server (INN2 https://www.eyrie.org/~eagle/software/inn/ https://www.eyrie.org/~eagle/software/inn/), and add scripts around it, or:
* Make a small server that talks NNTP and does exactly what you need
I've been doing the latter a number of times (most recently on Feedbase https://feedbase.org/ https://feedbase.org/ where the NNTP-part is written in Perl, and I am working on and off on a server (in Haskell) to run a blog where NNTP is the primary interface for the author; not quite finished yet), Gmane/Gwene http://gwene.org/ http://gwene.org/ does the former.
NNTP is a pretty simple protocol - an easy way to get going is to create a server that reads lines from a socket and replies when it recognizes something, connect an nntp-client and see what it sends and check the RFC for what is expected back, and then just go from there.
- shabble 8y agoSorry about the really late reply, just wanted to ack and say thanks for the reply. I did have a look at INN and wondered if that might be the way to go, but seemed potentially quite hacky. I'll have to poke around with feedbase and see what you're up to. My (probably badly though-out) idea was a somewhat generic server / API adapter that could be hooked up to make less terrible interfaces for something like HN or reddit, similar to how bitlbee does IM <-> IRC.