Page 1 of 1

Downloading from Usenet via NZB files / nntp library?

Posted: Sun Aug 05, 2007 8:39 am
by Carraway
Hi guys,

I'm trying to design a program that will parse an NZB file and download the corresponding binary from Usenet, but I'm having trouble figuring out what the best way to approach this would be.

I've looked around and there doesn't seem to be any kind of nntp library for Purebasic (a search for 'nntp' didn't turn up much). I looked into using an external command-line utility, but my only option was nget and incredibly that can't grab specific MessageIDs which is required when parsing an NZB file.

Anyone know what the proper course of action might be here? Is there a Windows API that might have NNTP functionality? etc.

Posted: Tue Aug 07, 2007 12:31 am
by Rescator
http://en.wikipedia.org/wiki/Nntp

And Wikipedia just teached me something new...again. *laughs*
The IMAP protocol can also be used for reading newsgroups.
O.o

Posted: Tue Aug 07, 2007 7:13 am
by Carraway
I did not know that either! Unfortunately it seems PureBasic's support for IMAP is scarce as well.

Posted: Wed Aug 08, 2007 1:52 pm
by majk
Is there a Windows API that might have NNTP functionality? etc.
Why? The NNTP Commands are such simple.

(1) Open a Network Connection to your NNTP Server
(2) Authenticate yourself (User / Pass)
(3) Request Posting with Message-ID <xyz@something>
(4) Receive Posting
(5) Decode

I think the most complicated part ist 5 (Decoding), because you had to develope yENC decoding. The www.yenc.org Homepage is currently not aviable :( You will find some other useful informations on http://en.wikipedia.org/wiki/YEnc