Posted Thu, 10 Jul 2014 12:00:32 GMT in reply to Dejan Lekic
On Thu, 10 Jul 2014 10:12:59 GMT, Dejan Lekic wrote:
I am planning to suggest FLTK team to move FLTK news from googlegroups to the (forum|news).fltk.eu (and perhaps move fltk.org there too). We have decade old newsgroups that I would like to "import" if possible so we do not lose old posts - it would really be a shame...
Did you guys ever do something like this?
I didn't do it yet, but it should be pretty simple to implement. Basically it requires just a minimal NNTP client implementation that uses the "listgroup" command to get all article numbers for the source group and then issues an "article" command for each of the articles the article itself can then be parsed with
parseRFC5322Header() and added to the database using
Controller.postArticle() (basically the same code as in
NewsInterface.post()). Since the protocol is more or less symmetric, all the primitives used for the server implementation should be reusable.