🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4601

Re: TIdNNTP, string data type and BCB 6

#4601
From: Remy Lebeau (TeamB)
Date: Mon, 17 Jan 2005 08:46
38 lines
2887 bytes
"Warwick" <warwickb1@extradotcodotnz> wrote in message
news:41eb61b7$1@newsgroups.borland.com...

> TIdNNTP connects using connect function and returns GreetingResult
> 0 (Permission to post). The GetNewNewsList function throws a protocol
> error Project2 raised exception class EIdProtocolError with message '502
> NEWNEWS Permission Denied (command disabled).

The error is self-explanatory.  The server has disabled the NEWNEWS command.
As such, you will not be able to use GetNewNewsList() at all.  Besides, most
servers have disabled that command anyway.  They use XOVER now instead.
NEWNEWS is obsolete, XOVER is more flexible.

> I can't be sure if the component is using a request command that
> the newsserver doesn't recognize

That is exactly what is happening.  All EIdProtocolReplyError exceptions are
thrown due to server responses indicating errors on the server side.

> or some property of the component has disabled the function.

There is no such property.

> The date argument looks odd, I was expecting something like an
> article ID instead, and get messages with article ID greater than
> AnInt or just get most recent AnInt messages.

Article IDs are not guaranteed to work that way.  They are arbitrary values,
meaningful only to the server.  XOVER works the way you are describing,
though.  You provide it a range of Article numbers to retreive, based on the
response received when you first select a group.  When you download
articles, remember the last article number (not ID) that you downloaded.
Then later on, you can use XOVER to download all articles that were posted
after that last article was posted.


Gambit
Technical Details
Message-ID: <41eb7acd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!213.218.66.70.MISMATCH!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41ea24b0@newsgroups.borland.com> <41eacae6$1@newsgroups.borland.com> <41eb61b7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,af8cc131fea57133
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41ea24b0@newsgroups.borland.com> <41eacae6$1@newsgroups.borland.com> <41eb61b7$1@newsgroups.borland.com>
Subject: Re: TIdNNTP, string data type and BCB 6
Date: Mon, 17 Jan 2005 00:46:04 -0800
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41eb7acd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105951437 68.69.17.41 (17 Jan 2005 00:43:57 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news-out2.kabelfoon.nl!83.128.0.10.MISMATCH!newsfeed.kabelfoon.nl!213.218.66.70.MISMATCH!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail