🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63382

Re: xBin (Power-Post 2003 - requesting input from authorities..)

#63382
From: Curt Welch
Date: Mon, 20 Jan 2003 03:36
125 lines
7509 bytes
Jeremy <jeremy@exit109.com> wrote:
> I am strongly opposed to overloading the Message-ID in this manner.

Yeah, there are obvious reaons to be opposed to the idea. It's weird.  It's
wrong.  But, it's mostly harmess I think.  The largest danger is that it
will increase the size of Message-IDs.

> You're adding new meaning to a header which never had that meaning
> before, which is bad enough, and you're doing it for the purpose of
> controlling feeds at the receiving end, which I think is backwards and
> entirely the wrong way to approach feed control.  It's less efficient and
> less effective than just doing it right.

No, it's done mostly to make it easy for download tools the find multiplart
posts without having to do full XOVER downloads.  The receving side feed
issue is just another added benifit.  There's nothing wrong and nothing
stoping you from using the same data on the sending side to filter the feed
the "right way"

What put it in the Message-Id instead of elsewhere in the header?

Some of the most popular news servers have broken XHDR implementations
which force us to put the data into a current XOVER header to make it
useful today. SO that limits us to Subject:, From:, Date:, Message-ID,
References:, Bytes:, Lines:, and Xref:.

Xref, and Bytes are not headers we have control over.  Lines: just won't
work.

So the only real options are Subject, From, Date, and Message-ID, and
References:.

Referecnes: could actually work. That's the J. B. Moreno hack that got us
  started thinking about this. (yes it's his fault not mine :)).  But
  References: has real meaning and is already a machine-readable header
    which
  we would "break" if we were to stick in fake Message-IDs which were there
  simply to hold file meta-data.  We would activly be "breaking" the
  standard that defines what a References: header was.  All mulipart posts
  would now have Referenes: ehaders when most never did.  Should we also
  add Re: to all multipart subjects to make it "semi right"?  And what
  happens when you follow-up to a binary post.  Does the follow-up article
  now "look" like a binary as well because it includes the fake file meta
  data?  And if you are forced to download all Refereces: headers from the
  gorup, you will be getting a lot of extra data about articles which you
  are not intereted in (i.e. the real References:).

What about Subject?  Well, that's a user-defined field already.  Trying to
hide machine readable data in there is clearly workable. But it's error
prone.  If the Subject has file meta-data that identifies the post as being
a binary, then any follow-up to the article will contian the same meta-data
in it's subject, which makes it look like binary data when it's now.  Ouch.
Subjects are not good.

Date: could be used.  Maybe.  Could you hide file meta-data in the timezone
  comment?  Probably.  But that seems like a totally broken and dangerous
  as well.  How many newsreaders will end up displaying that "file-meta
  data" in the list of articles or in the headers at the top of the post?
  How stupid will that look?  How many probelms will that cause?

From: is seldom used for "real" e-mail in the multipart posts anyway.  And
  the comments leave lots of syntactic freedom for cramming in data.  It
  could be done.  Of course, once again, it messes up the display of the
  From data in article lists for newsreaders.  It causes problems when
  trying to locate all the posts by a single user.  It would probably work,
  but it would be messy.

Then there's the Message-ID.  This, as it turns out, is simply where it
belongs. It took me some time to see that.  The xBin ID is a uniq string of
characters which identifies the data inside the article.  It _IS_ the data
segements "ID".  It is a Data-ID just like the Message-ID is a unique ID
for the article holding the data segment.  It is actaully both logical and
consistent to put the Data-ID inside the Message-ID of the article holding
the data.  The article is encapsulating the data, so why not create a
Message-Id which enscapsulates the Data-ID?

In case you had not seen the proposed concept, the Data-ID would look look
something like this:

  $XB$Hx/I8REUBPH$SEoJr$oC0$sBa$$
      ----------- ----- --- ---
      |           |     |   |
      |           |     |   segment size (in hash blocks)
      |           |     |
      |           |     segment offset (in hash blocks)
      |           |
      |           Full file size (in bytes)
      |
      Full file hash (well 60 bits of it in this example)

The above string of characters is the Data-ID for the data segment stored
in this article.  It will be exactly the same for the same data segement
for the same file no matter who posts it.  It is what I call the "xBin ID"
for the data segment.

The first two parts, the hash and file size, it the "xBin file ID".  It
uniquely defines xBin files.  If you want do download a file, that's the ID
you use to specify it.  As in, I just posted a move as:
$XB$Hx/I8REUBPH$SEoJr$$.

A usenet article which holds that data will have a Message-ID with the xBin
Data-ID imbeded in it just like the article has the data imbeded in it.  It
would look like this:

 <$XB$Hx/I8REUBPH$SEoJr$oC0$sBa$$mfS@someserver.com>

It has a normal RHS with normal semantics to help identify the source of
the article, and it will have some random data (12 bits or so) added to the
LHS to prevent message-ID prediction.

Servers now look up message-ids to prevent dups.  What they will be able to
do with this is maintain a second history-like database to record what
file-segments it has currently stored in the spools. It could reject posts
which were dups for the same file segment if it wanted to with this data in
the Message-ID. (thought the algorithm is more complicated than the normall
mesage-ID problem).

The Data-Id really fits correctly insde the Message-ID.  It almost seems to
belong there and is not nearly as much of a "hack" as it seems at first
inspection.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20030119223637.335$mC@newsreader.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <u7391vole7cci3qlobpvq0u79dqkiuoufm@news.iplweb.org> <6hqq1vk3dc5i0lbk65r761hr3jetalt9ap@news.iplweb.org> <20030115124728.470$XM@newsreader.com> <59369.i13205@archiver.winews.net> <1042932063.26311@ok-corral.gunslinger.net>

Show Full Headers
Complete Article Headers
Message-ID: <20030119223637.335$mC@newsreader.com>
Subject: Re: xBin (Power-Post 2003 - requesting input from authorities..)
Date: Mon, 20 Jan 2003 03:36:37 +0000
From: curt@kcwc.com (Curt Welch)
References: <u7391vole7cci3qlobpvq0u79dqkiuoufm@news.iplweb.org> <6hqq1vk3dc5i0lbk65r761hr3jetalt9ap@news.iplweb.org> <20030115124728.470$XM@newsreader.com> <59369.i13205@archiver.winews.net> <1042932063.26311@ok-corral.gunslinger.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!rip!news.webusenet.com!feed2.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com FXFnjA5=3AyF8J.8Nuoi6kb2@VkWm@Lk5edluLiFW-nNeadYp
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 124