I would like to try to download usenet newsgroup messages. Anybody know how? I'd take a look at IPWorks but I don't understand how to download it. Any suggestions?
You can download a trial version of the /n software IP*Works toolkit for .NET at this URL: http://www.nsoftware.com/download/download.aspx?part=IPN8-A&prod=demo&type=exe
The IP*Works V8 .NET Edition even comes with an example NNTP Reader client in their included demos. Below is some sample code:
String body = "";
Nntp nntp1 = new Nntp();
nntp1.OnTransfer += new NntpOnTransferHandler(delegate(object sender, NntpTransferEventArgs e) {
body = e.Text;
});
nntp1.NewsServer = "some.server.com";
nntp1.User = "someuser";
nntp1.Password = "somepassword";
nntp1.Connect();
nntp1.CurrentGroup = "somegroup";
nntp1.CurrentArticle = "articlenumber";
nntp1.FetchArticle();
Console.WriteLine("Body: " + body);
This is a simple example, but the NNTPReader demo will give you a more complete example.