I happen to have this ginormous archive from a local newsserver – more than 14 gigabytes of text and more than 8 years of history. Now this archive is a dump from the INN NNTP server that was previously used. It’s one folder per newsgroup and one file per article.
So I now want to integrate that archive into my own new newsserver – so what I am going to do is: Writing a small client application that can push all the articles from the folders to the new newsserver via nntp procotol.
Since the NNTP protocol is trivial to code and to explain I won’t reimplement it once again – instead I am going to use Randy Charles Morins nice article about accessing NNTP servers with C#:
“NNTP is an older fading protocol in the Internet protocol family. The protocol is used to retrieve news from news server, a.k.a. NetNews servers. The protocol works by posting messages into various forums, a.k.a. newsgroups. Then other end-users can read the recent posts in the forums. There also exist protocols for distributing NetNews contents amongst various NetNews servers, allowing thousands of servers to share news and forums. The most popular news server is of course Microsoft’s [nntp://news.microsoft.com]. More often than not, you can launch your NetNews client by typing the nntp URL in your browser’s address bar.”
I just made a quick-n-dirty addition of NNTP USER/PASS Authentification because my new server needs a username/password authentification. (NNTP Authentification is specified in RFC 4643)
The tool is easy to use since it’s command line and only takes simple parameters:
Grab the source and compiled binary here: PushToNNTP.zip (32,82 KB)
I release all of this under cc-by-nc-sa license.