Article View: news.software.nntp
Article #74615Re: How to find all the parts of a multipart message?
From: Bill Cole
Date: Tue, 02 Jan 2007 05:04
Date: Tue, 02 Jan 2007 05:04
62 lines
3935 bytes
3935 bytes
In article <Xns98ABD53F32078ikkehierbe@195.130.132.70>, Ikke <ikke@hier.be> wrote: > Hi everybody, > > I'd like to start writing my own NNTP client in a few days, so I've had a > quick look at the basic NNTP RFC stuff to get to know the protocol. What a truly sad statement. The last thing the world needs is yet another news client written by someone who is just learning NNTP and thinks that knowledge of the real world of news can be gleaned from RFC's. Please, try helping out with one of the open source news clients that already has most of the work done instead of writing yet another innovative combination of the same sorts of brokenness seen in news clients for the past 2 decades. > Easy enough so far, yet something still puzzles me: multipart messages. > > For instance, someone posts a message existing of 4 parts - how do I know > those parts belong together? You can't, at least not all of the time. If the poster is using yEnc, you can probably figure out how to arrange the parts if they are present. If the poster used any other encoding, you are left guessing and playing the percentages. A lot of clients do a reasonably good job (maybe even 90%) by heuristically parsing Subject headers, but posters will do things you do not expect. For example, I have seen posters using both "part of file" and "file of series" numbering in the Subject line like this: Subject: Hot kitty porn: Cats in Death Valley (1/4) (1/4) Subject: Hot kitty porn: Cats in Death Valley (3/4) (1/4) Subject: Hot kitty porn: Cats in Death Valley (1/4) (2/4) Subject: Hot kitty porn: Cats in Death Valley (4/4) (1/4) Subject: Hot kitty porn: Cats in Death Valley (2/4) (1/4) Subject: Hot kitty porn: Cats in Death Valley (2/4) (2/4) Subject: Hot kitty porn: Cats in Death Valley (3/4) (2/4) Subject: Hot kitty porn: Cats in Death Valley (2/4) (3/4) Given all 16 pieces, a client has a 50/50 shot at guessing the right way to order the posts. There are other tricks one could use to disambiguate that sort of case, but that's what you have to do: use multiple tricks. Look at Subject, Date, and he sizes reported in XOVER. Expect to get 90% or so right. > Surely there must be an easy way to identify > related messages through the information in the headers? No matter how many times people say there must surely be such a thing, there is not. News was not created for file transfer and is really not a good medium for it technically. News is designed as a discussion medium. File transport is an afterthought that has never been formally standardized and has been resisted by many sites. There is even something of an adversarial relationship between binaries users and some news admins, which is historically part of why multipart binaries exist. -- Now where did I hide that website...
Technical Details
Message-ID:
<bill-DAE11D.00044602012007@toaster.scconsult.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!feed118.news.tele.dk!news.scconsult.com!billReferences:
<Xns98ABD53F32078ikkehierbe@195.130.132.70>Show Full Headers
Complete Article Headers
Message-ID: <bill-DAE11D.00044602012007@toaster.scconsult.com> Subject: Re: How to find all the parts of a multipart message? Date: Tue, 02 Jan 2007 00:04:46 -0500 From: Bill Cole <bill@scconsult.com> References: <Xns98ABD53F32078ikkehierbe@195.130.132.70> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!feed118.news.tele.dk!news.scconsult.com!bill Newsgroups: news.software.nntp Organization: Solid Clues Lines: 62 NNTP-Posting-Host: bigsky.scconsult.com X-Trace: toaster.scconsult.com 1167714302 25426 192.168.2.102 (2 Jan 2007 X-Complaints-To: news@scconsult.com NNTP-Posting-Date: Tue, 2 Jan 2007 05:05:02 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.2 (Intel Mac OS X)