🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63854

Re: xBin Message-ID convention

#63854
From: Kjetil Torgrim Homme
Date: Wed, 05 Feb 2003 00:32
192 lines
9449 bytes
[Curt Welch]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > an xBin msgid is identified by a LHS (Left Hand Side of the @-sign)
>   > containing the magic string "~XB~".
>   
>   We had talked about ~, but then I ended up changing it to $ most
>   for personal estheic bias in my posting program.  I think I could
>   get used to ~.  I think $ makes it look more like a Message-ID,
>   but ~, for the same reason, makes it stand out as "something
>   special" which might be better.  And it reduces the odds of an
>   accidential collsion even further.
>   
>   But, one thing that would be nice is if the xBin-ID (~XB~....~~)
>   could be used as an argument on DOS and Unix command line programs
>   without having to put them in quotes.  $ is seen as a shell
>   variable on Unix.  An argument starting with ~ is seen as a user
>   home directory path substitution on Unix.  (i.e. cd ~curt).

do you have a user named "XB"? :-) ~XB will be left alone unless that
user exists.

>   Also, for MIME Base 64 we get / and + where / causes problems on
>   DOS (doesn't it? or is that up to the program?).

I don't think we want to use something other than BASE64.  the "<" and
">" characters are a bigger problem for both Unix and DOS, anyhow.

>   What about dot instead of ~?   .XB.HSuFjge8.S2Kj..
>   Does normal LHS semantics make .. (double dot) invalid?
>   Are the odds of a false match on a non xBin Message-ID too high with dot?

it'd definitely be much more likely to appear.  lots of clients use
dot separated components.

>   I used ~H to mark the hash so it started with ~XB~H followed by
>   the hash.  Did you leave that out on purpose or by accident?

on purpose.  but thinking about it, the policy for what do with an
unknown hashing scheme opens xBin to abuse.  if I said ~HK, the server
wouldn't know the hashing method, wouldn't know it actually was a
bogus hashing method, and couldn't automatically filter corrupt data
(either during POST or during transit or expire).  it could still
recognise duplicates, and calculate completion.

still not sure how to formulate the policy a server or reader must
follow when an unknown hashing method shows up, or rather, what to do
when no known hashing method is included.

>   > S   total size.  the complete size of the file in octets.  mandatory.
>   
>   The hash and the total size combined is the real xBin-ID for the
>   file, not just the hash.  So I think it's important that this is
>   not only mandatory, but that it comes right after the Hash.  This
>   way, the first part of the xBin-ID is always the "file ID":

I'm not too fond of fixing the order of the parameters, it could
become a straightjacket.  what happens if the hash method changes?
let's say the new hash method gets parameter "I", now the order must
be ~XB~I...~S...~x...~~ ?  should we allow more than one hash method?
we could allow that if the ordering doesn't matter.

>       <~XB~H53F8b3f9C0/1~SVLIw~sBX5A~oBX5A~~pI+@example.com>
>        --------+--------------
>                |
>                +-- This is the "file ID" part of the xBin-ID.
>                    This is what you can cut-and past, or pass to someone
>                    to specify what "xBin file" you want to get from Usenet.
>                    A full xBin File-ID would be ~XB~H...~S...~~
>   
>        ------------------+------------------
>                          + This is what I call the xBin-ID (~XB~ to ~~)
>   
>       ---------------------------+--------------------------
>                                  + The Message-ID (< to > of course)

do you really think the size needs to be part of the file ID?  it
could be useful since it allows the client to say "you have a total of
594 MiB on your wishlist", but it's not strictly necessary.

>   >   o   offset.  the first octet of this fragment is the octet at OFFSET
>   >       of the complete file.  defaults to 0.
>   >
>   >   s   part size.  the size of this fragment in octets.  defaults to
>   >       total size minus offset.
>   
>   I had switched to using hash-block numbers here instead of bytes.
>   Did you switch back to bytes for a reason?

yes, with file sets the offsets of the second file in the file would
usually not be block aligned.  I'll drop the file set concept, so I
can change this back.  if we make s be in blocks, it must be left out
for the last part, but that's just fine :-)

>   What would be useful in the Message-ID for this set file idea is a
>   single paramater to define the type of the file (a very simple
>   content-type idea).
>   
>   Maybe ~T for type where it defaulted to 0 for "data file", and a
>   value of 1 means it is an xBin set file[Format TBD].

culling from other parts of the thread, it seems like we need at least
three values:

  data
  announcing set
  wanted set

we could require the client to download all the set definitions to see
if it is a wanted or an announcement, though.

>   We would not attempt to let this exapand into a mini mine
>   Content-Type by creating values for text/plan, etc. The idea is to
>   limit this to ONLY the basic types the download tools need to know
>   about for getting their job done.

definitely.

>   > other headers
>   > =============
>   >
>   > xBin posters should put all meta-data about the files in suitable
>   > headers.
>   >
>   > filename (mandatory):
>   >   Content-Disposition: attachment; filename="somefile.mp3"
>   >
>   > filetype (optional for single files):
>   >   Content-Type: audio/mpeg
>   >
>   > fragment information (mandatory for file sets):
>   >   Content-Type: message/fragment; offset=OCTETS; total-size=OCTETS
>   >
>   > these are MIME headers, but the article should not declare
>   > "MIME-Version: 1.0" unless it is a well formed MIME document.
>   
>   I'm not sure about all this.
>   
>   You can't put this stuff in the article header if you have a mime
>   multipart/mixed article with the data in the second part.  The
>   file info headers in that case must be in the article body with
>   the other headers for that second of the MIME article.

yeah, it is a bit ugly.  removing the file sets helps heaps.

>   > interaction with uuencode
>   > =========================
>   >
>   > existing decoders will depend on meta-information in Subject, and
>   > therefore an xBin aware poster SHOULD follow existing conventions for
>   > tagging multipart files in Subject.  an xBin aware reader MUST NOT
>   > rely on data in Subject.
>   
>   We should add a little bit of the basics here about standard
>   Subject conventions.  Such as documenting "(XX/YY)" and point out
>   the the number of digits in both should be the same to make it
>   sort correctly and that the "real" XX/YY must be the rightmost
>   XX/YY on the line.  The wording should just document common
>   practice to gude people and not attempt to create a standard.

feel free to help out, I haven't studied that.  what's the difference
between [XX/YY] and (XX/YY), for instance?  how much of the Subject
must be kept constant?

>   > interaction with yEnc
>   > =====================
>   >
>   > same issues as uuencode.  an xBin reader MUST NOT rely on information
>   > from the =ybegin line.  an xBin poster MUST include valid information
>   > in =ybegin.
>   
>   It needs to get the file name from there hecause I don't think
>   your Content-Dispostion idea is going to fly.

why not?  we can just mandate it.  the nice thing about using
Content-Disposition is that stuff like the character set issue has
been sorted out (RFC 2231).

>   If you post a multipart file in a MIME format, it's got to be
>   readable by mime-aware newsreaders.  If we can not post it in this
>   format today, I don't see how we could ever justify posting it in
>   that format (or why we would even bother trying to convert to it
>   in the future).

yeah.  I'll forget about that, and rather push for a
message/external-body access-type if xBin actually gets deployed.
(are you calling _me_ a weathervane? ;-)

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Technical Details
Message-ID: <1r3cn3pnx1.fsf@vingodur.ifi.uio.no>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
References: <1rvg0ehvar.fsf@vingodur.ifi.uio.no> <20030203033140.853$4N@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1r3cn3pnx1.fsf@vingodur.ifi.uio.no>
Subject: Re: xBin Message-ID convention
Date: Wed, 05 Feb 2003 00:32:42 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <1rvg0ehvar.fsf@vingodur.ifi.uio.no> <20030203033140.853$4N@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail
Newsgroups: news.software.nntp
Organization: Dept. of Informatics, Univ. of Oslo, Norway
Lines: 191
NNTP-Posting-Host: vingodur.ifi.uio.no
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: maud.ifi.uio.no 1044405164 24619 129.240.68.200 (5 Feb 2003 00:32:44 GMT)
X-Complaints-To: abuse@ifi.uio.no
NNTP-Posting-Date: 5 Feb 2003 00:32:44 GMT
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7