🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by SleepDirt Thu, 04 Jul 2002 20:56
Dealing with canceled posts?
#59449
Author: SleepDirt
Date: Thu, 04 Jul 2002 20:56
18 lines
1428 bytes
I'm working on a news reader to learn socket programming. I've managed
to progress pretty far by reading the RFC's and looking at posts in
this group but something I just can't figure out is how to deal with
missing posts.

If I send a GROUP command to my server, it often gives me the wrong
start point and my client has to cycle through hundreds of headers
that come back blank.

ex:
"211 79657 5276223 5355879 alt.binaries.movies selected"
"xhdr subject 5276223"
"221 subject fields follow"
"."

Do most news readers go about this a different way than using the data
GROUP returns?
Re: Dealing with canceled posts?
#59450
Author: Russ Allbery
Date: Thu, 04 Jul 2002 21:09
25 lines
1830 bytes
SleepDirt <sleep_dirt@hotmail.com> writes:

> If I send a GROUP command to my server, it often gives me the wrong
> start point and my client has to cycle through hundreds of headers that
> come back blank.

> ex:
> "211 79657 5276223 5355879 alt.binaries.movies selected"
> "xhdr subject 5276223"
> "221 subject fields follow"
> "."

> Do most news readers go about this a different way than using the data
> GROUP returns?

Most news readers probably use article ranges rather than doing those
queries one message at a time, which will skip over the messages in the
range that aren't on the server.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Dealing with canceled posts?
#59451
Author: Erik Hensema
Date: Thu, 04 Jul 2002 21:41
30 lines
2083 bytes
SleepDirt (sleep_dirt@hotmail.com) wrote:
> I'm working on a news reader to learn socket programming. I've managed
> to progress pretty far by reading the RFC's and looking at posts in
> this group but something I just can't figure out is how to deal with
> missing posts.
> 
> If I send a GROUP command to my server, it often gives me the wrong
> start point and my client has to cycle through hundreds of headers
> that come back blank.
> 
> ex:
> "211 79657 5276223 5355879 alt.binaries.movies selected"
> "xhdr subject 5276223"
> "221 subject fields follow"
> "."
> 
> Do most news readers go about this a different way than using the data
> GROUP returns?

Simply supply a range:

xhdr subject 5276223-5355879

would give you all subjects in the group. Cancelled posts simply show up as
a gap in the article numbers.

-- 
Erik Hensema (erik@hensema.net)                             ICQ# 8280101
Quoting-HOWTO: http://www.leerquoten.nl
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads