Thread View: news.software.nntp
15 messages
15 total messages
Started by David
Fri, 13 Jul 2001 04:15
How do you locate all the files in a multi-part message?
Author: David
Date: Fri, 13 Jul 2001 04:15
Date: Fri, 13 Jul 2001 04:15
13 lines
1319 bytes
1319 bytes
Hi, in various news reader programs they group together multi-part messages into a single message. Does anyone know how this is done and which fields in the header are used to reliably locate the various parts? Thanks, David
Re: How do you locate all the files in a multi-part message?
Author: Curt Welch
Date: Fri, 13 Jul 2001 04:46
Date: Fri, 13 Jul 2001 04:46
22 lines
2027 bytes
2027 bytes
"David" <none@none.com> wrote: > Hi, > > in various news reader programs they group together multi-part messages > into a single message. Does anyone know how this is done and which fields > in the header are used to reliably locate the various parts? It's all a bit of black magic. There's no well defined and correct way to do it. But, the basic work is always done with just the Subject: and the From:. The From: must always be the same for all the parts, and the Subject:s are the same expect for one number field which changes. When trying to figure out which number in the subject is the correct one to change, you normally take the last one that looks correct. But whatevery algorith you use, somebody will post something that will fool it some day. But it's easy to get 99% of the articles matched up correctly. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: How do you locate all the files in a multi-part message?
Author: those who know me have no need o...
Date: Sun, 15 Jul 2001 07:36
Date: Sun, 15 Jul 2001 07:36
16 lines
1313 bytes
1313 bytes
<20010713004619.386$NL@newsreader.com> divulged: >It's all a bit of black magic. There's no well defined and correct >way to do it. actually there is one reliable way, mime message/partial, unfortunately most posters don't use it. >But, the basic work is always done with just the Subject: >and the From:. sometimes references can help. -- okay, have a sig then
Re: How do you locate all the files in a multi-part message?
Author: Multipart Meowbot
Date: Sun, 15 Jul 2001 08:50
Date: Sun, 15 Jul 2001 08:50
36 lines
2659 bytes
2659 bytes
Graeme Mathieson <graeme+usenet@mathie.cx> wrote: > Is it possible to add Content-Type: to overview database and not > break existing clients? Yes, NOV has always allowed optional fields. Xref is the most common example, but any header you like can go in there (provided you include the header name). > From what I can see, clients should look at 'list overview.fmt' in > order to determine the actual overview format. LIST SCHEMA|OVERVIEW.FMT Bad. It's not necessary, and it's not very robust either. The NOV spec defines seven mandatory fields (subject, from, date, message-id, references, size and lines) which never include header names, plus an arbitrary number of extension fields which always have header names[1], so the information is right there in the XOVER stream. > In which case, the message/partial MIME type provides all the required > information and a client could be modified to take advantage of the > new information in the XOVERview. I suppose it could fallback to > using XHDR on servers without the 'optimised' overview database. That would be fine, except for all the b0rken XHDR implementations out there. The trendy way to "support" XHDR is to make it a subset of XOVER, which is pretty close to useless. [1] INN allows any ordering of mandatory fields, and doesn't ensure that extension fields get names. That's a bug, but fortunately few try to exercise it. -- Sock puppetry is no laughing matter.
Re: How do you locate all the files in a multi-part message?
Author: The Archiver
Date: Sun, 15 Jul 2001 09:26
Date: Sun, 15 Jul 2001 09:26
47 lines
2514 bytes
2514 bytes
those who know me have no need of my name <not-a-real-address@usa.net> wrote:
>actually there is one reliable way, mime message/partial, unfortunately
>most posters don't use it.
Perhaps you can help me with an additional question here:
Most users are downloading headers today - and the newsreader tries
to combine multiparts from the XOVERview.
How is MIME better than UUencode in this case ?
It is essential to know if a splitted message is completely available (all
headers there) - _before_ you begin to download.
I have never seen additional information in the subject- or other
parts of the XOVER to make sure that a message is complete.
AFAIK the only chance for newsreaders is to find (#/#) in the subject
part of XOVER for both, MIME and UU.
I'm still looking for a better method to encode multipart binaries
and allow an improvement for automatic detection. Did the MIME
creators think about this?
My latest plans are to extend the subject line by additional information:
Subject: <comment>
'{' <filename> '}'
'(' <partnr> '/' <totalparts>')' <size> bytes
'[' <crc32> ','<byte#> '-' <byte#> ']'
<comment2>
The additional information (crc, startbyte of this part, endbyte of this part)
allows a newsreader/decoder to determine even reposts with different
sizes and can guarantee data-integrity due to filename+size+crc.
The <partnr> allows compatibility to existing decoders.
The '{' '}' allows proper detection of spaces in the filenames.
Usenet works completely diferent than eMail.
And I never saw someone care about this fact, yet.
--
The Archiver
Re: How do you locate all the files in a multi-part message?
Author: Curt Welch
Date: Sun, 15 Jul 2001 18:53
Date: Sun, 15 Jul 2001 18:53
150 lines
8566 bytes
8566 bytes
archiver@i3w.com (The Archiver) wrote:
> those who know me have no need of my name <not-a-real-address@usa.net>
> wrote:
>
> >actually there is one reliable way, mime message/partial, unfortunately
> >most posters don't use it.
> Most users are downloading headers today - and the newsreader tries
> to combine multiparts from the XOVERview.
>
> How is MIME better than UUencode in this case ?
I don't know if they addressed that. I suspect they didn't. But to
be honest, I've never read the MIME standard on that, I've only seen
a few examples.
The big problem is that it's not backward compatible with what everyone
is already doing. And because of the XOVER needs os Usenet, I don't
think it even works as well, so that' why we are not seeing people
switching to it. I'm guessing the MIME guys were stuck in their "e-mail"
frame of reference and assuming that all the articles would be downloaded
first, and then you look at the headers to try to match them up. Or maybe
they just wrote-off the XOVER issue and decided news needs to fix xover
to include the mime headers? who knows.
> My latest plans are to extend the subject line by additional information:
>
> Subject: <comment>
> '{' <filename> '}'
> '(' <partnr> '/' <totalparts>')' <size> bytes
> '[' <crc32> ','<byte#> '-' <byte#> ']'
> <comment2>
Those are interesting ideas, but it will break most current decoders. They
all expect the rest of the subject (besides the N/N numbers) to be the same
for all the articles. If you add anything to the subject that's not the
same across the entire set, it won't be compatible with todays decoders (I
assume - I know it will break mine at least). Also, putting all those
numbers after the (N/N) marker might confuse some of them as well.
Especially the "byte-byte" number stuff. Some scaners might be looking for
a dash as an optional /.
The trick is to create new standards that are backward compatible with
todays standards. If you create a new on which isn't compatible, then it's
not likely to become a standard just like the mime multipart standard.
If you want to be compatible with todays download tools, then you need to
put all that extra information elsewhere in the header instead of the
subject. Then your download tool can simply do a HEAD command on the first
article in the set. If if finds the "extra" info it's looking for in the
header, then it knows to expect to find that in all the articles of that
set. It can then do a head on all the articles in the set to make sure
that 1) they are really on the server (servers which lie in xover about
what's really available, don't normally lie with HEAD commands), 2),
collect all the extra data like above to make sure you have the correct
parts.
What you need to add to the header would include a unique identifier for
the entire site -- the message-ID of the first article could work, but that
might be a bad convention to start because there is at least one server
that doesn't let the client create their own ID. So if the upload tool
simply created a new Message-ID to identify the set, and put that in the
header of every article, that would be very useful. Something like:
Multipart-ID: <ksks@ksksk> (034/121)
A repost of a missing part should include the same Multipart-ID: as the
orginal. A repost of the entire set would have a new Multipart-ID, unless
the repost turely was a re-post and each part was exactly the same as the
first time it was posted.
This header works nicely for all forms of multipart articles - including
ones that have no files at all -- just very large text postings (faqs) ,
and ones that include multiple files split strangly across the article
boundries.
For multipart posts which only contain one large multipart file, then you
can add the other headers.
The filename could be put in a a header. I think I would tend to put this
in a header by itself to prevent any issues on how to parse the filename:
Multipart-File-Name: Song 3-4 by so and so.mp3
And the filesize:
Multipart-File-Size: 4323956
A hash of the entire file would be a nice optional feature to include when
possible. This is a good way to know that two different posts are really
the same file, which gives you options to not download files you aready
have, and to check the file once it's downloaded to before everything
worked correctly, but even better - to be able to put togeher missing
pieces of your previous download from a repost even though the repost was
posted with different line counts. That would be done with the help of the
byte range info below. But for large files, it might be a pain for some
posting agents to have to scan the entire file and calculate this before it
starts the post, so it would be optional.
Multipart-File-Hash: md5 e19c1283c925b3206685ff522acfe3e6
The crc and byte range of the current part would be put in a different
header to allow more verification that this was really the part you were
looking for, and to verify that you got valid data after the download:
Multipart-File-Segment: <first byte offset>-<last byte offset> <crc32>
And it would allow you to pick out just the parts you needed in a repost
to fill your gaps from a previous post. So someone could post a 200 part
file once, but because he got lots of repost requests, he might repost
it as a 800 part post - but with the hash and byte range headers, your
download tool could find and download only the pieces of that repost
which were needed to fill the gaps you missed in the first post.
The Subject should simply follow the current standard today, which in my
mind are:
Subject: <comments> filename (nn/NN)
You should never add comments after the (nn/nn) in my mind.
With the above type of headers added to multipart posts, a download client
only needs to use XOVER to locate and match up segments just like it works
now. It would then do a HEAD command for the first article in each segment
to see if there was more info available. That one HEAD command of the
first article in the set (even if only articles 10-28 were curretly on the
server), would tell it everything it needed to know to show the user what
was on the server to download.
Before it started to actaully download any segment, it would do head
commands on all the articles in the set first to verify they were their and
that they were the correct articles.
With the above headers, it would be very easy to create automated download
tools that were smart enough to "fill" holes in previuos downloads with no
assistance of the user. If anyone re-posted the same file again, even in
different sized segments, the tool would spot it and download the missing
chunks.
You could even explore the option of having automated re-post requests
which includes detailed headers about what files and byte ranges people
were looking for. Then, anyone that had the file (with the matching
md5 hash) could repost the missing byte ranges and even break the reposted
segments into small chunks this time to increase the probability that they
will make it through.
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: How do you locate all the files in a multi-part message?
Author: Jeremy
Date: Mon, 16 Jul 2001 07:10
Date: Mon, 16 Jul 2001 07:10
45 lines
2460 bytes
2460 bytes
The Archiver <archiver@i3w.com> wrote:
> Perhaps you can help me with an additional question here:
>
> Most users are downloading headers today - and the newsreader tries
> to combine multiparts from the XOVERview.
>
> How is MIME better than UUencode in this case ?
The problem is that the MIME headers aren't included in the overviews.
Until and unless they are, to reasonably support message/partial you
would have to use XHDR to grab the MIME headers, which may be thwarted
by servers that don't allow XHDR on non-overview headers, and fall back
on using HEAD.
It would be nice if MIME headers were included in overview, so clients
could know what they're getting.
> I'm still looking for a better method to encode multipart binaries
> and allow an improvement for automatic detection. Did the MIME
> creators think about this?
Yes, but they were thinking more about mail than about news, so the
unsolved problem remains getting the necessary headers. Once you have
them, message/partial should work perfectly.
> Subject: <comment>
> '{' <filename> '}'
> '(' <partnr> '/' <totalparts>')' <size> bytes
> '[' <crc32> ','<byte#> '-' <byte#> ']'
> <comment2>
This would break existing decoders.
> The additional information (crc, startbyte of this part, endbyte of
> this part) allows a newsreader/decoder to determine even reposts with
> different sizes and can guarantee data-integrity due to
> filename+size+crc.
This can be done with MIME too, if the headers are available. You can
include a checksum with a Content-MD5 header.
--
Jeremy | jeremy@exit109.com
Re: How do you locate all the files in a multi-part message?
Author: Russ Allbery
Date: Mon, 16 Jul 2001 09:22
Date: Mon, 16 Jul 2001 09:22
17 lines
1849 bytes
1849 bytes
Multipart Meowbot <meowbot@meowing.net> writes:
> [1] INN allows any ordering of mandatory fields, and doesn't ensure that
> extension fields get names. That's a bug, but fortunately few try to
> exercise it.
It'll go away one of these days as soon as I get a chance to look at it,
probably by removing the overview.fmt configuration file entirely and just
making a list of additional headers to put into overview a configuration
parameter somewhere and making up the LIST OVERVIEW.FMT reply on the fly.
--
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: How do you locate all the files in a multi-part message?
Author: A Meowbot
Date: Mon, 16 Jul 2001 12:52
Date: Mon, 16 Jul 2001 12:52
69 lines
4113 bytes
4113 bytes
Graeme Mathieson <graeme+usenet@mathie.cx> wrote:
> Right. Ta for the info. Is the NOV spec the doc mentioned in
> RFC2980 called "The Design of a Common Newsgroup Overview Database
> for Newsreaders"?
Yes, but that particular file doesn't go into much detail. More
helpful would be the newsoverview(5) manual page from Geoff Collyer's
NOV reference package. I'll append it here to save some hunting.
=====
NEWSOVERVIEW(5) NEWSOVERVIEW(5)
NAME
newsoverview - netnews overview files
SYNOPSIS
/usr/spool/news/group/.overview
DESCRIPTION
Each newsgroup directory contains a file named
`.overview', containing one-line summaries of articles in
that group. Fields are separated by tabs, and any tabs or
newlines in the original articles headers have been
replaced with spaces. The fields are, in order: article
number (file name), subject, author, date, message-id,
references, byte count, line count, and optionally other
headers, as arranged locally (none are supplied by the
database maintenance software, as shipped). The line-
count and references field may be empty. If the optional
other headers are present, they include their header key-
word and colon; if they are absent entirely, the tab after
the line-count field may also be absent.
The file is maintained in numerical order, by article num-
ber.
At the time of writing (late 1992), the lines in an
overview file are typically 150-300 characters long, and
an overview file for a typically busy group is often
30,000 bytes to 60,000 bytes long, with notable exceptions
exceeding 500,000 bytes.
EXAMPLES
A few lines from one overview file, with tabs displayed as
`|' and lines continued after `\'.
8870|strange message id's: <something>QUIT|schmitz@scd.hp.com (John Schmitz)\
|18 Sep 1992 19:57:16 GMT|<19dcasINNce@hpscdf.scd.hp.com>||821|
8871|Re: BNF rule for newsgroup names?|kris@tpki.toppoint.de (Kristian Koehntopp)\
|Fri, 18 Sep 1992 17:51:09 GMT|<1992Sep18.175109.21999@tpki.toppoint.de>\
|<43GQBM4D@cc.swarthmore.edu> <BuLB9y.7Dp@world.std.com>\
<BuLG5A.xH@cs.psu.edu> <339@blars.UUCP>|926||Supersedes: <1234@foovax>
FILES
/usr/spool/news/group/.overview
SEE ALSO
newsdb(5)
HISTORY
Written by Geoff Collyer as part of the C News project.
BUGS
The contents of the line-count field should not be
believed and are really pretty worthless yet popular.
Re: How do you locate all the files in a multi-part message?
Author: those who know me have no need o...
Date: Mon, 16 Jul 2001 14:32
Date: Mon, 16 Jul 2001 14:32
11 lines
1326 bytes
1326 bytes
<995267400.658125@news.netscum.dk> divulged: >It would be nice if MIME headers were included in overview, so clients >could know what they're getting. the format of the overview database is (now, and has been for some time) theoretically extensible, unfortunately it is not practically extensible. -- okay, have a sig then
Re: How do you locate all the files in a multi-part message?
Author: Jeremy
Date: Mon, 16 Jul 2001 17:46
Date: Mon, 16 Jul 2001 17:46
16 lines
1527 bytes
1527 bytes
Multipart Meowbot <meowbot@meowing.net> wrote: > That would be fine, except for all the b0rken XHDR implementations out > there. The trendy way to "support" XHDR is to make it a subset of > XOVER, which is pretty close to useless. Yes, this is a problem, because it forces you to do a shitload of HEAD commands just to get a few headers. It's essentially not "supporting" XHDR at all. And, while Content-Type might be nice to have in the overview, there are other handy associated headers that probably shouldn't be included, but would almost have to be as long as this non-support for XHDR is allowed to continue. -- Jeremy | jeremy@exit109.com
Re: How do you locate all the files in a multi-part message?
Author: Kjetil Torgrim Homme
Date: Thu, 19 Jul 2001 23:20
Date: Thu, 19 Jul 2001 23:20
15 lines
1646 bytes
1646 bytes
[Curt Welch] > The trick is to create new standards that are backward compatible > with todays standards. If you create a new on which isn't > compatible, then it's not likely to become a standard just like > the mime multipart standard. Rather than complicate matters with Multipart-ID's and other mechanisms to make multipart reliable, why not canvas the ISP's to accept HUGE articles. The net bytecount would go down, so it makes sense for everyone. Kjetil T.
Re: How do you locate all the files in a multi-part message?
Author: Curt Welch
Date: Fri, 20 Jul 2001 02:36
Date: Fri, 20 Jul 2001 02:36
40 lines
3191 bytes
3191 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote: > [Curt Welch] > > > The trick is to create new standards that are backward compatible > > with todays standards. If you create a new on which isn't > > compatible, then it's not likely to become a standard just like > > the mime multipart standard. > > Rather than complicate matters with Multipart-ID's and other > mechanisms to make multipart reliable, why not canvas the ISP's to > accept HUGE articles. The net bytecount would go down, so it makes > sense for everyone. The NNTP protocol and all the current news transports do not work well with huge articles. They were never designed for transporting 1GB articles and they just won't work. You might push some of the current server up to the 10MB article size range without too many problems, but they just won't work at 100MB and will fall over and die if you tried 1GB articles. News articles get treated like "packets" with the current servers and are transmited all at once. If you get 90% of the way though a transmission, there's no option to just resend the last part. You have to resend all of it. Large articles (say 500K and up) are already a problem because of this. You also can't start to re-send an article to your peer until you have finished receiving it. So the largeer the "chunks", the slower the article moves though usenet. If you think 500K articles move slow now, try doing it with a 50MB article. Same thing on the download side. If you download 100 articles of 500K each, you can restart the download at any 500K boundry if you get disconnected. But if someone tried to send you a 50MB single articles and your download fucked up after 10 hours, there's no way to start over from where you stopped. The NNTP protocol just doesn't have any support for that. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: How do you locate all the files in a multi-part message?
Author: The Archiver
Date: Tue, 24 Jul 2001 05:35
Date: Tue, 24 Jul 2001 05:35
24 lines
1790 bytes
1790 bytes
Jeremy <jeremy@exit109.com> wrote: >> Most users are downloading headers today - and the newsreader tries >> to combine multiparts from the XOVERview. >> >> How is MIME better than UUencode in this case ? > >The problem is that the MIME headers aren't included in the overviews. >Until and unless they are, to reasonably support message/partial you >would have to use XHDR to grab the MIME headers, which may be thwarted >by servers that don't allow XHDR on non-overview headers, and fall back >on using HEAD. I was afraid that MIME does not really solve the common problems. So there is no real advantage to use it - and the UUencoding will remain on Usenet for a very long time. Unfortunately binary transport is underestimated by all task forces. But I'll continue to work on that topic. -- The Archiver
Re: How do you locate all the files in a multi-part message?
Author: The Archiver
Date: Tue, 24 Jul 2001 06:02
Date: Tue, 24 Jul 2001 06:02
83 lines
4409 bytes
4409 bytes
curt@kcwc.com (Curt Welch) wrote: >Those are interesting ideas, but it will break most current decoders. They >all expect the rest of the subject (besides the N/N numbers) to be the same >for all the articles. If you add anything to the subject that's not the >same across the entire set, it won't be compatible with todays decoders (I >assume - I know it will break mine at least). Also, putting all those >numbers after the (N/N) marker might confuse some of them as well. >Especially the "byte-byte" number stuff. Some scaners might be looking for >a dash as an optional /. Of course a detailled test with the 5 most common newsreaders would be necessary before such a format could be used for posting. >The trick is to create new standards that are backward compatible with >todays standards. If you create a new on which isn't compatible, then it's >not likely to become a standard just like the mime multipart standard. I agree - but if you check the actual behavior in the binary newsgroups then you will find a whole BUNCH of encoding tools. Without a good UUdecoder, a RAR tool, Msplit .... you cannot survive. So the 'backward compatibility' is not the most important thing (for me). >If you want to be compatible with todays download tools, then you need to >put all that extra information elsewhere in the header instead of the >subject. Then your download tool can simply do a HEAD command on the first >article in the set. If if finds the "extra" info it's looking for in the >header, then it knows to expect to find that in all the articles of that >set. It can then do a head on all the articles in the set to make sure >that 1) they are really on the server (servers which lie in xover about >what's really available, don't normally lie with HEAD commands), 2), >collect all the extra data like above to make sure you have the correct >parts. Yes, this is the 'usual way': Adding complexity. And this is exactly what I dont want to do. Any new approach should fit into the existing XOVER command. >So if the upload tool >simply created a new Message-ID to identify the set, and put that in the >header of every article, that would be very useful. Something like: > > Multipart-ID: <ksks@ksksk> (034/121) Additional headers could help. But again a lot of complexity is added. If the posting program _and_ the downloading programs must be modified, then the price for compatibility is very high. > [...] > Multipart-File-Hash: md5 e19c1283c925b3206685ff522acfe3e6 > [...] > Multipart-File-Segment: <first byte offset>-<last byte offset> <crc32> > [...] You are defining a new binary posting standard within a few minutes while you are answering to a question ? WOW - I'm deeply impressed. But I'm not sure if anybody would be able to test all this, create a RFC, and convince the writers of posting/downloading tools to implement all this stuff. But as a part of 'a true binary usenet transport RFC' it could work. >[...] >You could even explore the option of having automated re-post requests >which includes detailed headers about what files and byte ranges people >were looking for. >[...] Together with full automatic 'resume broken download' this might be a binary paradise. Perhaps too perfect for some people... ;-) Well, I'll keep all your proposals in my mind. Thanks for the comprehensive reply. -- The Archiver
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