🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Franchi Gianni Thu, 11 Mar 1999 00:00
Help On NTTP
#35907
Author: Franchi Gianni
Date: Thu, 11 Mar 1999 00:00
11 lines
706 bytes
I'm developing an NTTP reader...
Now I need to know the message size and if contain some attached files
before to download it..
Can someone help me?

Thank you in advance..




Re: Help On NTTP
#35913
Author: Phat Phork-Phed Phluffy
Date: Thu, 11 Mar 1999 00:00
26 lines
2000 bytes
>>>>> "Franchi" == Franchi Gianni <gianni.franchi@mmedia.it> writes:

Franchi> I'm developing an NTTP reader...
Franchi> Now I need to know the message size and if contain some attached files
Franchi> before to download it..
Franchi> Can someone help me?

I'm afraid there is no easy way to do this.  You can obtain the number
of bytes in the article using XOVER, but you are not going to be able
to tell what is inside without downloading the article.  You might be
able to tell *sometimes* by looking in the headers for MIME
information, but if the attachment is uuencoded or the MIME headers
are inconclusive, you will have to download the body to do your
parsing.

Some newsreaders try to guess about binary content by the subject
lines (for example, look for a '1/1' type of description) but this too
is not very reliable, and far from standardized =(

-- 
 "We can't legislate against every stupid thing people will do, and yet the
temptation is there to try time and time again."  --Jesse 'The Body' Ventura
               New stuff: "Meowing in Cahoots with the Vulis"
 <URL:http://www.mp3.com/music/Alternative/8446.html> (fake addy for d/l okay)

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