🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
42 messages
42 total messages Started by Kjetil Torgrim Homme Sat, 25 Jan 2003 01:28
xBin Message-ID convention
#63626
Author: Kjetil Torgrim Homme
Date: Sat, 25 Jan 2003 01:28
296 lines
12641 bytes
alright.  here's my write-up of xBin.  it's not perfect, I'm sure
there are lots of details missing, and I'm pretty tired so the
explanations are probably not perfectly enlightening.  anyhow:

xBin is a method for distributing large files over Usenet.  here,
"large" means more than approx. 200 kB.  large files need to be split
across several news articles, and reassembled into one file by the
reader of the newsgroup.  the integrity of an individual part can be
proven by including a header called Content-SHA1-Tree[TBD], which is
described elsewhere.  the algorithm in Content-SHA1-Tree produces a
160-bit hash of the data in the file which uniquely identifies its
contents.  the chance of two files having the same hash but different
content is infinitesimal: if every person on Earth each owns 150
million million files which are different from everyone else's files,
there is a 50% chance of two files, worldwide, having the same hash.
this 160-bit identifying hash is called the root hash.

in order to recognise which articles constitute parts of the file,
news reading software (from now on "reader" for short) has
traditionally looked at the Subject for substrings like "(3/9)", which
means part 3 in a sequence of 9.  this is however prone to mistakes,
and the reader must filter out dataless replies or bogus data posted
to sabotage.  furthermore, if someone posts the same file, but using a
different descriptive text in the Subject, the reader will not know
that it is the same file.  if it knew, it could ignore it if the file
was completely downloaded, or take advantage of the data if it was
only partially downloaded.

xBin uses the root hash as an identifier which is put in the
Message-ID, a header which is efficiently available for the reader
from any news server.  the root hash is a global identifier which is
constant regardless of who posts the file, and so the problems with
parsing Subject noted above go away.

in addition to the root hash, information on total size, offset into
the file and more is put into the Message-ID for easy filtering by the
reader or news server.

an xBin msgid is identified by a LHS (Left Hand Side of the @-sign)
containing the magic string "~XB~".  the magic string is followed by
the first 72 bits[TBD] of the root hash, a number of other parameters,
and terminated by the string "~~".  there can only be one such xBin
string in a msgid, but arbitrary text either before or after the
string is allowed.  it is highly recommended that the news posting
software ("poster") includes random text outside the xBin string to
make the msgid unguessable.  18 bits or more of randomness, ie. at
least three BASE64 digits, would be suitable.  each msgid should have
a different random component.

each parameter is specified on the form "~C" followed by an integer
value, where C is some character identifying the parameter.  the
parameters are:

  S   total size.  the complete size of the file in octets.  mandatory.

  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.

  H   hashing method.  defaults to 0, which is 72-bits
      Content-SHA1-Tree.

the H parameter is reserved for the future in the unlikely event that
SHA1 must be replaced.  a xBin decoder MUST NOT try to calculate 

the hash excerpt is regarded as 9 octets of data, and coded using
BASE64.

the integer values are coded as big-endians in BASE64.  examples:

    0 is encoded as "A"
 4711 is encoded as "BJn"
      ("B" == 1, "J" == 9, "n" == 39, and 1*64*64 + 9*64 + 39 == 4711)

an xBin implementation MUST be able to encode or decode 63 bit integer
values.


file sets
=========

file sets introduce two new parameters:

  M   multi-file.  the number of files included in this set.  defaults
      to 1.

  F   file number.  which file this article is a part of.  if there is
      more than one file represented in the article, choose the highest
      number.  defaults to 1.

the presence of an M parameter changes the meaning of the other
parameters, and the root hash is calculated slightly differently.

the news posting software ("poster") takes all the files in the set
and calculates the root hash for each.  it then takes these 160 bit
root hashes, concatenates them in order, and calculates the SHA1 hash
of that data.  the resulting hash is the root hash for the set.

the values S, o and s parameters are specified as if one hypothetical
file consisting of all the files in the set were being transmitted.

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.

size of parts
=============

to ensure smooth propagation of all the parts of a file, the parts
should be as similar as possible in size.

many servers will transmit small articles faster than large articles,
and this can cause the last article to arrive much earlier (perhaps an
hour) than the first article.  on a server with limited retention,
this may cause the last part to expire an hour or two before the
second-to-last part of the file, which is confusing to users.

even worse, some servers will drop articles larger than some size.  if
the last article is much smaller than the others, it may be let
through, while all the large articles are ignored.  the user will see
a newsgroup with only one part from each file: the last one.  again
very confusing to users who may ask the other users of the newsgroup
for reposts to no avail.

how should the part size be calculated?  the user should be allowed to
set an upper bound for the part size.  this upper bound is measured
against the encoded size of the part.  subtract a couple of KB for
miscellaneous headers, and use an appropriate estimate of encoding
overhead (40% for uuencode, 25% for BASE64, 3% for yEnc).

Content-SHA1-Tree requires the size of each fragment to be a complete
number of blocks (22500 octets[TBD]).  only the last fragment can
contain an incomplete block.

here's some simple pseudo code to find a suitable size for each part:

    file_size = <size of file>

    block_size = 22500
    max_part_size = 500000
    raw_max_part_size = (max_part_size - 2000) * 0.75
    part_size = trunc(raw_max_part_size / block_size) * block_size

    # set it up so the loop condition is always true
    too_much = 1
    number_of_parts = 0
    part_size = part_size + block_size

    while (too_much > number_of_parts * block_size)
    {
        part_size = part_size - block_size
        number_of_parts = trunc((file_size - 1) / part_size) + 1;
        too_much = number_of_parts*part_size - $file_size;
    }

    # we now know how large the largest part will be.  the last part
    # will have the same number of blocks, but the last block is
    # incomplete.  the remainder surplus will be distributed among the
    # next to last parts.

    surplus_blocks = trunc((too_much-1) / block_size)
    last_block = too_much - surplus_blocks*block_size
    
    for i = 1 to (number_of_parts - surplus_blocks - 1)
        print "part", i, "contains", part_size, "bytes"

    for i = (number_of_parts - surplus_blocks) to (number_of_parts - 1)
        print "part", i, "contains", part_size - block_size, "bytes"

    print "part", number_of_parts, "contains", last_block, "bytes"


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.

the filename MUST be specified using Content-Disposition in the first
part.  Content-Disposition MAY be included in other parts as well.
the filename SHOULD be the same as the filename specified in the
uuencode "begin" line.

single file
-----------

xBin requires the size of each part to be a multiple of 22500 bytes.
following the above algorithm will satisfy this requirement.

multiple files
--------------

each part MUST only contain blocks from a single file.  the part size
algorithm should thus be run on each file individually.  each part
must contain Content-SHA1-Tree corresponding to the fragment of the
file, and fragment information in Content-Type.


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.


interaction with MIME
=====================

there are two methods for posting files too large for a single
article, message/partial (old method) and message/fragment (new
method, not an official part of MIME yet).


message/partial
---------------

the messages are constructed as usual, except for the part size
limitation.  all the usual MIME headers are in use, and in addition
Content-SHA1-Tree must be included with each fragment.

single file

the Content-SHA1-Tree is included in the article headers of each
fragment.

multiple files

the first fragment of each file includes the Content-SHA1-Tree in its
entity headers.  the following fragments put the Content-SHA1-Tree in
the article headers.

message/fragment
----------------

with message/fragment, each part is a well formed MIME document
standing alone.  a message/fragment contains an inner set of entity
headers and an encoded body.  Content-Type and
Content-Transfer-Encoding will usually have to be set in the inner
entity headers.  there is no backwards compatibility to consider in
this mode, but all except the first part SHOULD have a References
referring to the first part in the set so that existing clients will
consider it one thread which can be collapsed.

single file

Content-Disposition and Content-SHA1-Tree SHOULD be put on the outer
level (== in the article headers).

  From: someone@example.com
  Subject: my wedding march
  Newsgroups: alt.binaries.misc
  Message-ID: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~oBX5A~~pI+@example.com>
  References: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~~hQa@example.com>
  Content-SHA1-Tree: ....
  MIME-Version: 1.0
  Content-Type: message/fragment; offset=360000; total-size=5550640
  Date: Sat, 25 Jan 2003 02:06:03 +0100

  Content-Type: audio/mpeg
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment; filename="wedding.mp3"

  data...

multiple files are encoded in a similar manner, but the
message/fragments are put inside multipart/mixed.  this means
Content-Disposition and Content-SHA1-Tree SHOULD be part of the
internal entity headers of each message/fragment.  it is however
possible to avoid fragments from two files in the same article
(similar to the method used with uuencode and yEnc), and then the
method for single parts is to be used.  Subject can be descriptive for
the complete set, or for each file, at the user's discretion.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#63650
Author: root
Date: Sun, 26 Jan 2003 02:00
29 lines
2503 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> alright.  here's my write-up of xBin.  it's not perfect, I'm sure
> there are lots of details missing, and I'm pretty tired so the
> explanations are probably not perfectly enlightening.  anyhow:
Thgoughts:
> 
> xBin is a method for distributing large files over Usenet.  here,
<snip>
> an xBin msgid is identified by a LHS (Left Hand Side of the @-sign)
> containing the magic string "~XB~".  the magic string is followed by
> the first 72 bits[TBD] of the root hash, a number of other parameters,
> and terminated by the string "~~".  there can only be one such xBin
> string in a msgid, but arbitrary text either before or after the
> string is allowed.  it is highly recommended that the news posting
> software ("poster") includes random text outside the xBin string to
> make the msgid unguessable.  18 bits or more of randomness, ie. at
> least three BASE64 digits, would be suitable.  each msgid should have
> a different random component.

If the random component was a signature of the message-ID, generated by
the private key of the user, then that would both ensure unguessability,
and also have the benefit of allowing the posts author to be
verified.

-- 
http://inquisitor.i.am/    |  mailto:inquisitor@i.am |             Ian Stirling.
---------------------------+-------------------------+--------------------------
Tad Williams has an interesting new fantasy: http://www.shadowmarch.com/
Re: xBin Message-ID convention
#63653
Author: J.B. Moreno
Date: Sun, 26 Jan 2003 06:17
18 lines
1623 bytes
In article <1rvg0ehvar.fsf@vingodur.ifi.uio.no>, 
 Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

> xBin is a method for distributing large files over Usenet.  here,
> "large" means more than approx. 200 kB.  large files need to be split
> across several news articles, and reassembled into one file by the
> reader of the newsgroup.

I disagree with this opening statement -- xBin is not a method for
distributing large files, it is a method for /identifying/ and
verifying the integrity of files posted to usenet.

It's just as valuable with a single 5k picture as it is with a 2gig
movie.

-- 
J.B. Moreno
Re: xBin Message-ID convention
#63660
Author: David Magda
Date: Sun, 26 Jan 2003 16:22
18 lines
1666 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> writes:
[...] 
> single file
> -----------
> 
> xBin requires the size of each part to be a multiple of 22500 bytes.
> following the above algorithm will satisfy this requirement.
[...]

Except for the last part. (Obvious, but too many people miss the
obvious so it should probably be stated explicitly. :> )

-- 
David Magda <dmagda at ee.ryerson.ca>
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well 
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
Re: xBin Message-ID convention
#63668
Author: Kjetil Torgrim Homme
Date: Mon, 27 Jan 2003 14:37
26 lines
1981 bytes
[J.B. Moreno]:
>
>   In article <1rvg0ehvar.fsf@vingodur.ifi.uio.no>, 
>    Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   
>   > xBin is a method for distributing large files over Usenet.  here,
>   > "large" means more than approx. 200 kB.  large files need to be split
>   > across several news articles, and reassembled into one file by the
>   > reader of the newsgroup.
>   
>   I disagree with this opening statement -- xBin is not a method for
>   distributing large files, it is a method for /identifying/ and
>   verifying the integrity of files posted to usenet.

I'll fix the wording, thanks.

>   It's just as valuable with a single 5k picture as it is with a
>   2gig movie.

true, but for single part files, yEnc's CRC32 or MIME's MD5 already
solve the problem.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#63671
Author: Kjetil Torgrim Homme
Date: Mon, 27 Jan 2003 17:30
28 lines
1726 bytes
[Andy C]:
>
>   X-No-Archive: yes
>
>   [Andy's adaption of the part size algorithm into C++ gives the
>   wrong result]

ouch, that's no good.  I had Perl code which I turned into BASIC like
pseudo code.  the Perl code works, and gives this result:

$ ./partsplit.pl 1234567
315000
315000
292500
312067

>   >    print "part", number_of_parts, "contains", last_block, "bytes"

aha, this line (the last one) should read

 print "part", number_of_parts, "contains", part_size - last_block, "bytes"

thanks for pointing out my mistake!

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#63675
Author: J.B. Moreno
Date: Tue, 28 Jan 2003 00:27
18 lines
1604 bytes
In article <1rptqifykv.fsf@vingodur.ifi.uio.no>, 
 Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

> [J.B. Moreno]:
-snip-
> >   It's just as valuable with a single 5k picture as it is with a
> >   2gig movie.
> 
> true, but for single part files, yEnc's CRC32 or MIME's MD5 already
> solve the problem.

For single part files they do a good enough job of verifying the
integrity of the file, they do /not/ do a good job of making it easy to
know if an article is a text article or a binary file.

-- 
J.B. Moreno
Re: xBin Message-ID convention
#63681
Author: Kjetil Torgrim Homme
Date: Tue, 28 Jan 2003 17:31
13 lines
1526 bytes
[Andy C]:
>
>   X-No-Archive: yes

indeed, the intent is to make the article sizes as uniform as
possible.  the rationale for that is presented prior to the algorithm,
I thought.  I would appreciate it if you could try to point out where
the text needs improvement.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#63819
Author: Curt Welch
Date: Mon, 03 Feb 2003 08:31
350 lines
16364 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> alright.  here's my write-up of xBin.  it's not perfect, I'm sure
> there are lots of details missing, and I'm pretty tired so the
> explanations are probably not perfectly enlightening.  anyhow:
>
> xBin is a method for distributing large files over Usenet.  here,
> "large" means more than approx. 200 kB.

I think it would be wrong to imply it should only be used for "large"
files.  It can be used for any size file and I think it's the start of what
could end up morphing into a general purpose file-transport system inside
of Usenet (separte from the power to "hide" files inside text articles like
we do now).

> 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).

Also, for MIME Base 64 we get / and + where / causes problems on DOS
(doesn't it? or is that up to the program?).  Any ideas about what to use
to make the xBin-ID "cleaner"?

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?

> the magic string is followed by
> the first 72 bits[TBD] of the root hash, a number of other parameters,
> and terminated by the string "~~".

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?

Oh, after reading futher below, I see you just did it a bit differently.
Not sure if that's wise.  See comments further down on ~H.

> each parameter is specified on the form "~C" followed by an integer
> value,

We shouldn't say they are integers which I belive will tend to leaves one
think the data is limited to something small like 32 bits max in size.  To
allow for maximum future expansion flexibility, we should define the value
of the parameter as zero or more BASE64 charaters.  We might want to encode
a short string in there at some point in the future.

We can then define how an "integer" is encoded for paramaters which are
normally thought of as a single numeric value.

> where C is some character identifying the parameter.  the
> parameters are:

> 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":

    <~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)

>   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?

>   H   hashing method.  defaults to 0, which is 72-bits
>       Content-SHA1-Tree.

Oh, I see, you did it a little differently.

I think that's dangerous.  Most programs I'm afraid are likely to not look
for the ~H paramater if you do that way.  With your way, adding ~H1 should
cause all old systems to ignore the hash value. Instead, many will probably
just ignore the ~H paramater and continue assuming the hash is the same.

I think it needs to be ~H<hash-value> so if you change it, and produce new
IDs that are ~XB~I<newhash> it will have a better chance of the old systems
"knowing" something is _very_ different.

> the integer values are coded as big-endians in BASE64.  examples:
>
>     0 is encoded as "A"
>  4711 is encoded as "BJn"
>       ("B" == 1, "J" == 9, "n" == 39, and 1*64*64 + 9*64 + 39 == 4711)
>
> an xBin implementation MUST be able to encode or decode 63 bit integer
> values.

I'm not sure if that's the correct way to say that.  What you might really
want to say is that there is no limit to the size of integers.  Saying 63
bits might lead programms to make the false assumption that the field could
never be larger than 11 characters.  We don't want any limit (even if 63
characters will last more than 1000 years).  Any xBin-ID parser needs to
parse it correctly for unlimited lengths.  If the newsreader on the other
hand is unable to deal with files larger than 32 bits, then that's fine -
thats a limit of the tool.  But the tool needs to deal with xBin ids of any
length and be good about saying "that's too big - I can't deal with that",
instead of mis-parsing it and comming up with an invalid 63 bit number when
25 base-64 characters are used and the programmer assumed it would never be
more than 63 bits.

> file sets
> =========
>
> file sets introduce two new parameters:
>
>   M   multi-file.  the number of files included in this set.  defaults
>       to 1.
>
>   F   file number.  which file this article is a part of.  if there is
>       more than one file represented in the article, choose the highest
>       number.  defaults to 1.
>
> the presence of an M parameter changes the meaning of the other
> parameters, and the root hash is calculated slightly differently.
>
> the news posting software ("poster") takes all the files in the set
> and calculates the root hash for each.  it then takes these 160 bit
> root hashes, concatenates them in order, and calculates the SHA1 hash
> of that data.  the resulting hash is the root hash for the set.

After readig thouth all the old messages here I had fallen behind on, I
don't think we should go there that way.

I think we should instead define a file format for holding the information
(including the xBin-IDs) and they should just post that file to describe
the file set.  Because we hash the contents of all files posted, the
xBin-ID of the "set file" becomes a secure hash of the entire set.

If two people post the similar but different sets, which happen to share
same of the same files (like jpg collections), then using a separte file to
define the file-set allows the two file sets to share the same file without
any "set confusion".

If you posted your set first, and then I tried to post my set, my posting
tool could "see" that one of the files was already posted to the same group
and automatically not repost it.  This is very clean if you don't try to
put file-set info into the Message-ID.

Also, with the separate file to define the set, you can have set files
included in other sets and end up creating an unlimited depth hierarch of
sets as parts of sets.  Putting the info in the Message-ID you limit
yourself to single level hierarchies.

With set files working like that, people could post daily summaries of
everything posted to the group in the past 24 hours.  The set file could
list all sets, and all individual files not mentioned in other set files.
Not sure if that would be useful, but it's something that just popped into
my head.

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].  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.  It it "knows" it's a set
file, then it knows to parse it as such and then fetch (for a recurse/set
download request) all the files in it as well.


> 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.

The more I think about this stuff, the less I like the idea of using MIME
to transport xBin files (it's fine to use MIME for now, but I don't think
it's right to try and define how it should work like this).  I think xBin
may end up taking us on a different path.  It will beome a "file system"
which will hold MIME articles (as files) intead of the other way around (a
mime article holding a xBin file fragment).

> size of parts
> =============
>
> to ensure smooth propagation of all the parts of a file, the parts
> should be as similar as possible in size.
>
> many servers will transmit small articles faster than large articles,
> and this can cause the last article to arrive much earlier (perhaps an
> hour) than the first article.  on a server with limited retention,
> this may cause the last part to expire an hour or two before the
> second-to-last part of the file, which is confusing to users.
>
> even worse, some servers will drop articles larger than some size.  if
> the last article is much smaller than the others, it may be let
> through, while all the large articles are ignored.  the user will see
> a newsgroup with only one part from each file: the last one.  again
> very confusing to users who may ask the other users of the newsgroup
> for reposts to no avail.
>
> how should the part size be calculated?  the user should be allowed to
> set an upper bound for the part size.  this upper bound is measured
> against the encoded size of the part.  subtract a couple of KB for
> miscellaneous headers, and use an appropriate estimate of encoding
> overhead (40% for uuencode, 25% for BASE64, 3% for yEnc).
>
> Content-SHA1-Tree requires the size of each fragment to be a complete
> number of blocks (22500 octets[TBD]).  only the last fragment can
> contain an incomplete block.
>
> here's some simple pseudo code to find a suitable size for each part:
>
>     file_size = <size of file>
>
>     block_size = 22500
>     max_part_size = 500000
>     raw_max_part_size = (max_part_size - 2000) * 0.75
>     part_size = trunc(raw_max_part_size / block_size) * block_size
>
>     # set it up so the loop condition is always true
>     too_much = 1
>     number_of_parts = 0
>     part_size = part_size + block_size
>
>     while (too_much > number_of_parts * block_size)
>     {
>         part_size = part_size - block_size
>         number_of_parts = trunc((file_size - 1) / part_size) + 1;
>         too_much = number_of_parts*part_size - $file_size;
>     }
>
>     # we now know how large the largest part will be.  the last part
>     # will have the same number of blocks, but the last block is
>     # incomplete.  the remainder surplus will be distributed among the
>     # next to last parts.
>
>     surplus_blocks = trunc((too_much-1) / block_size)
>     last_block = too_much - surplus_blocks*block_size
>
>     for i = 1 to (number_of_parts - surplus_blocks - 1)
>         print "part", i, "contains", part_size, "bytes"
>
>     for i = (number_of_parts - surplus_blocks) to (number_of_parts - 1)
>         print "part", i, "contains", part_size - block_size, "bytes"
>
>     print "part", number_of_parts, "contains", last_block, "bytes"
>
> 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.

> the filename MUST be specified using Content-Disposition in the first
> part.  Content-Disposition MAY be included in other parts as well.
> the filename SHOULD be the same as the filename specified in the
> uuencode "begin" line.
>
> single file
> -----------
>
> xBin requires the size of each part to be a multiple of 22500 bytes.
> following the above algorithm will satisfy this requirement.
>
> multiple files
> --------------
>
> each part MUST only contain blocks from a single file.  the part size
> algorithm should thus be run on each file individually.  each part
> must contain Content-SHA1-Tree corresponding to the fragment of the
> file, and fragment information in Content-Type.
>
> 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.

> interaction with MIME
> =====================

> message/fragment
> ----------------

> there is no backwards compatibility

More stuff that doesn't feel like it's going to work.

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).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#63820
Author: Curt Welch
Date: Mon, 03 Feb 2003 08:37
13 lines
1519 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> alright.  here's my write-up of xBin.

Oh, BTW, in my long follow up, I forgot to say "good job".  Thanks.

I need to find time to move your work to the my xbin.org site so we can
have a "current version" there to discuss.  But I've got to get up in a few
hours so this is enough for tonight...

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#63854
Author: 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
Re: xBin Message-ID convention
#63858
Author: Kjetil Torgrim Homme
Date: Wed, 05 Feb 2003 01:22
277 lines
11464 bytes
updated version.  lots of edits, main one is removing the file set
concept.

====

xBin is a method for identifying and verifying files over Usenet.  it
is especially useful for files larger than approx. 200 kB which
typically need to be split across several news articles, and
reassembled into one file by the reader of the newsgroup.  the
integrity of an individual part can be proven by including a header
called Content-SHA1-Tree[TBD], which is described elsewhere.  the
algorithm in Content-SHA1-Tree produces a 160-bit hash of the data in
the file which uniquely identifies its contents.  the chance of two
files having the same hash but different content is infinitesimal: if
every person on Earth each owns 150 million million files which are
different from everyone else's files, there is a 50% chance of two
files, worldwide, having the same hash.  this 160-bit identifying hash
is called the root hash.

in order to recognise which articles constitute parts of the file,
news reading software (from now on "reader" for short) has
traditionally looked at the Subject for substrings like "(3/9)", which
means part 3 in a sequence of 9.  this is however prone to mistakes,
and the reader must filter out dataless replies or bogus data posted
to sabotage.  furthermore, if someone posts the same file, but using a
different descriptive text in the Subject, the reader will not know
that it is the same file.  if it knew, it could ignore it if the file
was completely downloaded, or take advantage of the data if it was
only partially downloaded.

xBin uses the root hash as an identifier which is put in the
Message-ID, a header which is efficiently available for the reader
from any news server.  the root hash is a global identifier which is
constant regardless of who posts the file, and so the problems with
parsing Subject noted above go away.

in addition to the root hash, information on total size, offset into
the file and more is put into the msgid (the value of Message-ID) for
easy filtering by the reader or news server.

an xBin msgid is identified by a LHS (Left Hand Side of the @-sign)
containing the magic string "~XB", a number of parameters, and
terminated by the string "~~".  there can only be one such xBin string
in a msgid, but arbitrary text either before or after the string is
allowed.  it is highly recommended that the news posting software
("poster") includes random text outside the xBin string to make the
msgid unguessable.  18 bits or more of randomness, ie. at least three
BASE64 digits, would be suitable.  each msgid should have a different
random component.

each parameter is on the form "~C" followed by a value, where C is
some character identifying the parameter.  the parameters are:

  H   hash, the 72 most significant bits of the root hash.  the type is
      data.  this parameter is mandatory.

  S   total size, the complete size of the file in octets.  the type is
      integer.  this parameter is mandatory.

  o   offset, the first block of this fragment is OFFSET number of
      blocks into the complete file.  the type is integer.  this
      parameter defaults to 0.

  s   part size, the size of this fragment in blocks.  the type is
      integer.  this parameter defaults to total size minus offset
      (ie., the last fragment can and should leave this parameter out).

  P   parity file number.  the type is integer.  this parameter is
      mandatory for parity files.

  N   parity fragment coverage.  how many fragments the parity
      information contains redundancy information for.  the type is
      integer.  this parameter defaults to 100[TBD] or the number of
      remaining fragments, whichever is smaller.

  T   type of file.  the type is string.  this parameter defaults to
      "data".

datatypes
=========

data
----

the data type is coded using BASE64.  if the number of octets is not a
multiple of three, the data will be padded using '=' as is normal for
BASE64 coding.

integer
-------

the integer values are coded as big-endians in base 64, using the
digit enumeration from BASE64.  examples:

    0 is encoded as "A"
 4711 is encoded as "BJn"
      ("B" == 1, "J" == 9, "n" == 39, and 1*64*64 + 9*64 + 39 == 4711)

an xBin implementation MUST be able to encode and/or decode large
integers, ie. at least 63 bit values.

string
------

a string can contain characters from the set of allowable characters
in the base64 encoding, that is alphanumerics, plus and slash.


parity files
============

[more text needed.  why S is mandatory and the slight change in
meaning for s and o must be explained.]


file types
==========

[enumerate possible values.  point to definition of set files.]


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):
  Content-Type: audio/mpeg

these are MIME headers, but the article should not declare
"MIME-Version: 1.0" unless it is a well formed MIME document.

size of parts
=============

to ensure smooth propagation of all the parts of a file, the parts
should be as similar as possible in size.

many servers will transmit small articles faster than large articles,
and this can cause the last article to arrive much earlier (perhaps an
hour) than the first article.  on a server with limited retention,
this may cause the last part to expire an hour or two before the
second-to-last part of the file, which is confusing to users.

even worse, some servers will drop articles larger than some size.  if
the last article is much smaller than the others, it may be let
through, while all the large articles are ignored.  the user will see
a newsgroup with only one part from each file: the last one.  again
very confusing to users who may ask the other users of the newsgroup
for reposts to no avail.

how should the part size be calculated?  the user should be allowed to
set an upper bound for the part size.  this upper bound is measured
against the encoded size of the part.  subtract a couple of KB for
miscellaneous headers, and use an appropriate estimate of encoding
overhead (40% for uuencode, 25% for BASE64, 3% for yEnc).

Content-SHA1-Tree requires the size of each fragment to be a complete
number of blocks (22500 octets[TBD]).  only the last fragment can
contain an incomplete block.

here's some simple pseudo code to find a suitable size for each part:

    file_size = <size of file>

    block_size = 22500
    max_part_size = 500000
    raw_max_part_size = (max_part_size - 2000) * 0.75
    part_size = trunc(raw_max_part_size / block_size) * block_size

    # set it up so the loop condition is always true
    too_much = 1
    number_of_parts = 0
    part_size = part_size + block_size

    while (too_much > number_of_parts * block_size)
    {
        part_size = part_size - block_size
        number_of_parts = trunc((file_size - 1) / part_size) + 1;
        too_much = number_of_parts*part_size - $file_size;
    }

    # we now know how large the largest part will be.  the last part
    # will have the same number of blocks, but the last block is
    # incomplete.  the remainder surplus will be distributed among the
    # next to last parts.

    surplus_blocks = trunc((too_much-1) / block_size)
    surplus_bytes = too_much - surplus_blocks*block_size
    
    for i = 1 to (number_of_parts - surplus_blocks - 1)
        print "part", i, "contains", part_size, "bytes"

    for i = (number_of_parts - surplus_blocks) to (number_of_parts - 1)
        print "part", i, "contains", part_size-block_size, "bytes"

    print "part", number_of_parts, "contains", part_size-surplus_bytes, "bytes"


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.

the filename MUST be specified using Content-Disposition in the first
part.  Content-Disposition MAY be included in other parts as well.
the filename SHOULD be the same as the filename specified in the
uuencode "begin" line.

xBin requires the size of each part except the last to be a multiple
of 22500 bytes.  following the above algorithm will satisfy this
requirement.


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.


interaction with MIME
=====================

the messages are constructed as usual, except for the part size
limitation.  if split across several articles, message/partial MUST be
used.  all the usual MIME headers are in use, and in addition
Content-SHA1-Tree MUST be included in the article headers of each
fragment.  it is suggested that the xBin ID is used as the content-id.
here is an outline for how the first two articles in a series of 16
would look using MIME.

  === article 1 begins ===
  From: someone@example.com
  Subject: my wedding march
  Newsgroups: alt.binaries.misc
  Message-ID: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~~hQa@example.com>
  Content-SHA1-Tree: ....
  MIME-Version: 1.0
  Content-Type: message/partial; id="~XB~53F8b3f9C0/1~SVLIw~~@xbin";
          fragment=1; total=16
  Date: Sat, 25 Jan 2003 02:06:03 +0100

  Content-Type: audio/mpeg
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment; filename="wedding.mp3"

  data...
  === article 1 ends ===

  === article 2 begins ===
  From: someone@example.com
  Subject: my wedding march
  Newsgroups: alt.binaries.misc
  Message-ID: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~oBX5A~~pI+@example.com>
  References: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~~hQa@example.com>
  Content-SHA1-Tree: ....
  MIME-Version: 1.0
  Content-Type: message/partial; id="~XB~53F8b3f9C0/1~SVLIw~~@xbin";
          fragment=2; total=16
  Date: Sat, 25 Jan 2003 02:06:04 +0100

  data...
  === article 2 ends ===

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#63859
Author: Kjetil Torgrim Homme
Date: Wed, 05 Feb 2003 01:28
24 lines
2129 bytes
[root@mauve.demon.co.uk]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > it is highly recommended that the news posting software
>   > ("poster") includes random text outside the xBin string to make
>   > the msgid unguessable.  18 bits or more of randomness, ie. at
>   > least three BASE64 digits, would be suitable.  each msgid should
>   > have a different random component.
>   
>   If the random component was a signature of the message-ID, generated by
>   the private key of the user, then that would both ensure unguessability,
>   and also have the benefit of allowing the posts author to be
>   verified.

that's very interesting, but that is really separate from xBin.  you
could propose a standard adding ~XS~sig~~ which would hold the
signature for the msgid with the ~XS~sig~~ substring removed.  not
sure what this buys you compared to X-PGP-Sig, though.

(a signature will always be much larger than 18 bits.)
-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#63863
Author: Jeffrey M. Vinocur
Date: Wed, 05 Feb 2003 02:33
29 lines
1882 bytes
In article <1r3cn3pnx1.fsf@vingodur.ifi.uio.no>,
Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
>[Curt Welch]:
>>
>>   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.
>
>do you have a user named "XB"? :-) ~XB will be left alone unless that
>user exists.

Hmm, depends on the shell.  tcsh:

(jeff@puck:pts/32) ~ > echo ~xb
Unknown user: xb.


>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.

Actually, I think $ is the worst.  You get visibly odd behavior
when you don't quote < and >, but $ just gets silently dropped by
at least some shells.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: xBin Message-ID convention
#63870
Author: Dr.Ruud
Date: Wed, 05 Feb 2003 10:24
38 lines
2704 bytes
Kjetil Torgrim Homme skribis:
> [Curt Welch]:

>>   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.

From the 'convention':
|  H   hash, the 72 most significant bits of the root hash.  the type is
|      data.  this parameter is mandatory.

I don't see ~H in the examples:
|  Message-ID: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~~hQa@example.com>
|  Content-Type: message/partial; id="~XB~53F8b3f9C0/1~SVLIw~~@xbin;"
|          fragment=1; total=16
|
|  Message-ID: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~oBX5A~~pI+@example.com>
|  References: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~~hQa@example.com>
|  Content-Type: message/partial; id="~XB~53F8b3f9C0/1~SVLIw~~@xbin";
|          fragment=2; total=16
If the ~H is not there, then the default scheme should be applied?

For a new hashing scheme, don't use a new letter. Maybe:
~XB~H~~<scheme-id>~<hash>, or something like:
~XB~H/<scheme-id>/<hash>, or, since the hash-value (is 72-bits) is
12 Base64-characters, put the <scheme-id> in the 13th.

-- 
Affijn, Ruud


Re: xBin Message-ID convention
#63871
Author: Kjetil Torgrim Homme
Date: Wed, 05 Feb 2003 12:10
30 lines
2218 bytes
[Dr.Ruud]:
>
>   From the 'convention':
>   |  H   hash, the 72 most significant bits of the root hash.  the type is
>   |      data.  this parameter is mandatory.
>   
>   I don't see ~H in the examples:
>   |  Message-ID: <~XB~53F8b3f9C0/1~SVLIw~sBX5A~~hQa@example.com>

ah.  just an editorial oversight.  thanks!

>   For a new hashing scheme, don't use a new letter. Maybe:
>   ~XB~H~~<scheme-id>~<hash>,

(a nit: "~~" terminates the xBin string.)

>   or something like: ~XB~H/<scheme-id>/<hash>, or, since the
>   hash-value (is 72-bits) is 12 Base64-characters, put the
>   <scheme-id> in the 13th.

we could do that, the important thing is that specify how the format
would be extended upfront.  my idea was to use an explicit tag
identifying the hashing mechanism.  this has a problems.  giving each
mechanism its own tag means we could put more than one in a msgid
during a (short) transition period.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#63884
Author: J.B. Moreno
Date: Wed, 05 Feb 2003 19:51
22 lines
1931 bytes
In article <1r3cn3pnx1.fsf@vingodur.ifi.uio.no>, 
 Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

> [Curt Welch]:

> >   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.

Yes, but I don't know of any that use a /leading/ dot -- i.e. the first
component of a xBin id will be "<.XB.H ", and I don't think any current
client would be likely to produce that (besides, it should be used not
as a flag saying "this is an xBin file fragment" but instead "this
*may* be an xBin file fragment, examine the rest of the id to see if it
is").

-- 
J.B. Moreno
Re: xBin Message-ID convention
#63887
Author: Kjetil Torgrim Homme
Date: Wed, 05 Feb 2003 20:09
29 lines
2332 bytes
[J.B. Moreno]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   
>   > it'd definitely be much more likely to appear.  lots of clients use
>   > dot separated components.
>   
>   Yes, but I don't know of any that use a /leading/ dot -- i.e. the
>   first component of a xBin id will be "<.XB.H ",

|   an xBin msgid is identified by a LHS (Left Hand Side of the
|   @-sign) containing the magic string "~XB", a number of parameters,
|   and terminated by the string "~~".  there can only be one such
|   xBin string in a msgid, but arbitrary text either BEFORE or AFTER
|   the string is allowed.  [emphasis mine]

>   and I don't think any current client would be likely to produce
>   that (besides, it should be used not as a flag saying "this is an
>   xBin file fragment" but instead "this *may* be an xBin file
>   fragment, examine the rest of the id to see if it is").

sure, it is very unlikely to crop up by accident, even if we chose 1
as the separator character.  ~ is very seldom in itself, and makes the
msgid stand out.  I think that is a good characteristic.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#63926
Author: Rene
Date: Fri, 07 Feb 2003 00:26
66 lines
3360 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> updated version.  lots of edits, main one is removing the file set
> concept.

First: Great work, thanks for doing it.

> the file which uniquely identifies its contents.  the chance of two
> files having the same hash but different content is infinitesimal: if
> every person on Earth each owns 150 million million files which are
> different from everyone else's files, there is a 50% chance of two
> files, worldwide, having the same hash.  this 160-bit identifying hash
> is called the root hash.

I did not check that this number is correct, but I ask anyway? Did you
include the birthday paradoxon in that calculation? And is it based on
160bit or on the 72bits we're using in the header?

> file types
> ==========
>
> [enumerate possible values.  point to definition of set files.]

Not to forget repost request which are TBD as well.

> these are MIME headers, but the article should not declare
> "MIME-Version: 1.0" unless it is a well formed MIME document.

Why not change the should not in a MUST NOT here? If it isn't MIME, it
shouldn't be labelled as such.

> overhead (40% for uuencode, 25% for BASE64, 3% for yEnc).

Isn't it about 33% + a tiny fraction for the line breaks in case of Base64?
I mean, you expand 3 chars to 4, so it becomes 4/3 -> 1/3 overhead. (Your
25% is 3/4?)

> the filename MUST be specified using Content-Disposition in the first
> part.  Content-Disposition MAY be included in other parts as well.

This somewhat contradicts the following part from the headers section:
"
xBin posters should put all meta-data about the files in suitable
headers.

filename (mandatory):
  Content-Disposition: attachment; filename="somefile.mp3"
"

From the headers-section I'd put the filename in any xBin article while
this part now says I only need to do it in the first article. Is it smart
to do so ? If the first article expires then I don't know the filename
until someone reposts it. If I get a par instead... well though luck.

> the filename SHOULD be the same as the filename specified in the
> uuencode "begin" line.

How about adding that a filename may *never* include path information. The
definition of "filename" may be not too binding.

That's about it. Well that and maybe adding some more rationale why we're
using the Message-ID?

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Re: xBin Message-ID convention
#63930
Author: Rene
Date: Fri, 07 Feb 2003 01:04
94 lines
5095 bytes
> 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.

At least notify the user to check if there isn't a newer version around (in
the case of a newsreader). What a server does when it encounters a unknown
method should probably be left to the server admin as a configurable
option. Allow unchecked data, reject it, (or allow it unchecked and send a
cancel, so it would appear on no-cancel server but not on cancel-honouring
ones)

> 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.

Why should there ever be more than one hash method at the same time? If we
need a new one, why should we still use the old method and include it too ?

> 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.

Yes, if I click on a xBin item my newsreader is offering me, then it either
should check if it actually has that much space on the local disk, or -
what I would do - create one single empty file with the size the file will
be using and filling in data as it arrives.

>   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.

No but I'd like to see them separate. This doesn't cost much, does it?
A non-posting capable xBin client never needs to see a wanted set.

> >   > 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?

The question is, do we give suggestions or do we simply introduce a binding
standard for xBin that is coincidentally compatible with most of the tools
out there?

If the last one, which was originally suggested by Juergen, then I suppose
we need to define a full subject spec, including:

Are there leading zeros?
(001/123) vs (1/123).
Are spaces allowed ?
(  1/123) vs (1/123) vs (1 / 123)
Round or edge brackets? mixing them allowed (how ugly!)
(1/123) vs [1/123] vs {1/123} vs [1/123) etc.

Do we include a second number-set ? (xBin is limited to a one-file view,
the old system is not! How do we deal with that?)

Where does the filename stand and how is it marked?
REQ:asdkgkadhah HERE's asdjfjakbf "filexyz.abc" blafaselblabla (1/123)

or more easily readable:
<arbitrary user text> SPACE "<filename>" SPACE <arbitrary user text> SPACE
<chunk number> or...?

Defining it rigidly would help non-xBin newsreaders (as long as it doesn't
break them with "our" standard) but it does also prolong the usage of the
subject which we ultimately want to get rid off for good.

Not defining it wouldn't change anything from status quo, or make the
situation worse when a new xBin posting tool is being written which does
break the old non-xBin clients.

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Re: xBin Message-ID convention
#63941
Author: J.B. Moreno
Date: Fri, 07 Feb 2003 05:22
29 lines
2282 bytes
In article <20030206200430.220$Gr@newsreader.com>, 
 Rene <invalid@email.addr> wrote:

> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
>
> > [Curt Welch:]
> > >   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> > >   > existing decoders will depend on meta-information in Subject, and
> > >   > therefore an xBin aware poster SHOULD follow existing conventions
-snip-
> > >   We should add a little bit of the basics here about standard
> > >   Subject conventions.  Such as documenting "(XX/YY)" and point out
-snip-
> > 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?
> 
> The question is, do we give suggestions or do we simply introduce a binding
> standard for xBin that is coincidentally compatible with most of the tools
> out there?

I don't agree with adding anything about the existing Subject
conventions other than saying that they should be followed.  The simple
fact of the matter is that there *is* no real standard for them,
getting into that quagmire would be a mistake.

-- 
J.B. Moreno
Re: xBin Message-ID convention
#63960
Author: Curt Welch
Date: Sat, 08 Feb 2003 04:40
286 lines
14554 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [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.]

Not on FreeBSD's csh and tcsh.  That seems to happen with sh.  With csh you
get an "Unknown user" error.


> >   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.

Yeah, but I was thinking of the case of being able to cut and past the
Xbin-ID info out of the Message-ID so the <> would not be an issue.

> >   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.

Yeah, and though dot makes it easy to read, it also makes it look a lot
more like an e-mail address.  The ~ will make it stand out as something
special which I think would be good.  With dot, people could see those IDs
and not notice them as anything different.  With all the ~, it will catch
your eye.

The other (and probably more valid) reason for a "clean" xBin-ID format is
so it can be used as part of a file or directory name.

One way to address that is to think about a standard "hex" version to use
there.

> >   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.

The hash is so important to the meaning that I think it might be wise to
treat an xBin-ID with an unknown hash the same way articles without an
xBin-ID are treated.  But like you, I don't think we have really thought
this through to the level we need to yet.  It will probably be wise to get
more working code in place first to get a better feel for how the code will
work.

The other issue about the hash is it's size.  It seems that if we don't
include the full 120 bits (which is what we have talked about), that a more
likely change in the future would be to include more hash bits in the
Message-Id.  We want to make sure all programs can deal with that
correctly.

> >   > 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?

The "more than one hash" is a valid idea.

However, when I think of problems like that I tend to want to intentionally
not allow the hash method to be changed.  I think the odds of "needing" to
swtich to a new hash is so small (this isn't a security application), and
the problems that would arrise so great if you changed, that it would just
never happen.  The hash doesn't have to be unbreakable, it just has to be a
good hash with enough protection to prevent someone from easily and quickly
creating forged values.  And, even if the security of SHA1 is totaly
compromized one day, it will still act as a valid file-id, and as a valid
integrity check against accidential corruption.  It would just loose it's
strength against abuse.  Maybe, by the day that happens, it will make more
sense to add other security to the article instead of changing the xBin ID
hash.

But on the general idea of ording the arguments, I guess it's not too
important and would give us more future flexibility to allow the order to
be undefined (though it still seems "right" to suggest the order).  I'll
have to think more about that...

> 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.

It's a matter of hash bits.  If you decide you need N hash bits to get the
probability of collision low enough, then it's best to use only "good" hash
bits.  However, the file size can act as "additional" hash bits.  Because
the distribtuion of the values are not even across all files (many will
have the same size, or have a size which is a multiple of some constant),
the bits aren't "good" hash bits.  But in the Message-ID, we want to not
include the full 120 we have in the SHA1 hash to keep the very limited
Message-ID "real estate" from being too abused.  And, the size needs to be
there already, so it can act as "free" hash bits to help us either reduce
the number of SHA1 bits in the Message-Id, or just make it that much
stronger.  It seems it would be a waste to not encourge people to use it.
If the hash in the Message-Id was long enough that we didn't need to use
the size, then we are wasting Message-ID characters and should remove some
from the hash.

> >   >   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 :-)

That would work.  I just thought of it as a value which defined the number
of "blocks" (full or partial) in the article, so even for the last aricle
it was still valid.  It just meant that the you needed to look at the size
if you wanted to find the "real" size of the data in bytes.  It might be
better to just have the size defualt to "the rest of the file" and leave it
out of the Message-ID for the last article.

> >   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.

Yeah, but if you have something like ~T1 already to mean "set" it seems a
shame not to allow ~T2 for "wanted set".  Thought it feels like there might
be reasons to only have "one" type for a "set" file and put the "wanting"
vs "annoucning" info in the file.  I'm not sure why I'm thinking that
however.

> >   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?

Everything must be constant except the last XX/YY in the article. [] are
allowed though () is more common.

> >   > 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).

Because you can now have a multiplart/mixed MIME article with the first
part being text/plain and the second holding the data. Putting
Content-Dispostion in the header of all articles would break these types of
MIME articles which currently work.

> >   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? ;-)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#63998
Author: bill davidsen
Date: Tue, 11 Feb 2003 23:08
20 lines
1911 bytes
In article <1rptqifykv.fsf@vingodur.ifi.uio.no>,
Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:

| >   It's just as valuable with a single 5k picture as it is with a
| >   2gig movie.
| 
| true, but for single part files, yEnc's CRC32 or MIME's MD5 already
| solve the problem.

Not really true, if I understand that a hash of the whole file will be
included somewhere, then I can tell that I allready have the
information.

-- 
Bill Davidsen <davidsen@tmr.com> CTO, TMR Associates
  A hero is not someone who only does the brave thing when challenge is
thrust upon him. A hero chooses to accept personal risk for the common
good when it could be avoided; to slay the tiger, extinguish the
burning building, or venture into space.
Re: xBin Message-ID convention
#63999
Author: bill davidsen
Date: Tue, 11 Feb 2003 23:16
24 lines
2343 bytes
In article <1rvg0ehvar.fsf@vingodur.ifi.uio.no>,
Kjetil Torgrim Homme  <kjetilho@haey.ifi.uio.no> wrote:
| alright.  here's my write-up of xBin.  it's not perfect, I'm sure
| there are lots of details missing, and I'm pretty tired so the
| explanations are probably not perfectly enlightening.  anyhow:

I have to think on this, but my overall impressin is that you might be
better off to embed the information in header lines, X-xBin1: etc,
rather than the message-id, because like it or not that does get munged
by gateways, reposting, sites which insist on their own msg-id, and
other evil forces.

By putting it in the header you still allow easy checking via the HEAD
command, so the whole file, or even a single part, need not be loaded to
check the fields.I may comment later on the rest of it, I certainly
don't see anything not mentioned already in the thread.

-- 
Bill Davidsen <davidsen@tmr.com> CTO, TMR Associates
  A hero is not someone who only does the brave thing when challenge is
thrust upon him. A hero chooses to accept personal risk for the common
good when it could be avoided; to slay the tiger, extinguish the
burning building, or venture into space.
Re: xBin Message-ID convention
#64015
Author: Curt Welch
Date: Wed, 12 Feb 2003 19:10
55 lines
3908 bytes
davidsen@tmr.com (bill davidsen) wrote:
> I have to think on this, but my overall impressin is that you might be
> better off to embed the information in header lines, X-xBin1: etc,
> rather than the message-id,

Putting it in the Message-ID does seem wrong.  But there are reasons we
have done this.

> because like it or not that does get munged
> by gateways, reposting, sites which insist on their own msg-id, and
> other evil forces.

Within Usenet, these's very little problems with that (there can't be of
course because Usenet wouldn't work if sites inside of Usenet changed the
Message-ID).

With e-mail it's a more of a problem.  But the answer there is that no one
should be posting large multipart binaies through an e-mail gateway.  I've
never heard of that being done so I don't see it as a problem.

There is only one large well-known site which forces their own Message-IDs
on posts (airnews) and Frank has already announced that they are chaging
that.  And if there are others, the answer is simple, people just shouldn't
post large binaries from those sites.  If they do, it will break the xBin
label, but the post will still be useable so it's not like the bandwidth is
wasted.  Over time, if xBin becomes a standard, the sites which don't
support it will be forced to change, or poeple will just be told not to
post binaries from those sites.  I see it as a small enough problem that I
don't think it's going to make a difference.

> By putting it in the header you still allow easy checking via the HEAD
> command, so the whole file, or even a single part, need not be loaded to
> check the fields.

The large binary groups have thousands of articles - millions on some
servers.  Do you have any idea how long it would take to do a million HEAD
commands?  If you put it anywhere other than one of the XOVER headers, it's
going to be mostly useless for todays servers.

The beauty of putting it in the Message-ID is that it allows download tools
to use XHDR Message-ID to get everything it needs to know about the
articles in the binary group.  We will be able to change to a system where
download tools won't have to waste time doing XOVER.  That's about a 10 to
1 savings in speed and bandwidth over the current practice of using using
XOVER for the large binary groups.  The idea will be to post text files in
a .d group to announce the post (with a simple text article or maybe with a
set-file like we have talked about), but the large multipart binaries go in
a group where the rest of the xover headers are not needed so people can
stop wasting their time download 500 copies of the same subject for a 500
part post.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#64024
Author: Kjetil Torgrim Homme
Date: Thu, 13 Feb 2003 02:59
95 lines
5105 bytes
[Curt Welch]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > 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?
>   
>   The "more than one hash" is a valid idea.
>   
>   However, when I think of problems like that I tend to want to
>   intentionally not allow the hash method to be changed.  I think
>   the odds of "needing" to swtich to a new hash is so small (this
>   isn't a security application), and the problems that would arrise
>   so great if you changed, that it would just never happen.

I agree.  so how about we just drop the possibility of changing the
hashing algorithm?  if need be, we can make a new ~XH~...~~ to
complement the xBin information...

>   The other issue about the hash is it's size.  It seems that if we
>   don't include the full 120 bits (which is what we have talked
>   about), that a more likely change in the future would be to
>   include more hash bits in the Message-Id.  We want to make sure
>   all programs can deal with that correctly.

good point.  I'll change the wording.  how about:

  H   hash, the most significant bits of the root hash.  at least 72
      bits MUST be included.  the number of bits MUST be a multiple of
      18.  the type is data.  this parameter is mandatory.

the reason for "multiple of 18" is to avoid the need to understand
equals sign padding...

>   > 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.
>   
>   Yeah, but if you have something like ~T1 already to mean "set" it
>   seems a shame not to allow ~T2 for "wanted set".  Thought it feels
>   like there might be reasons to only have "one" type for a "set"
>   file and put the "wanting" vs "annoucning" info in the file.  I'm
>   not sure why I'm thinking that however.

not sure if a numerical value and a registry is better or worse than a
freeform string:

  T   type of file.  the type is string.  this parameter defaults to
      "data".

the string data type may be giving people too much rope.

>   > 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?
>   
>   Everything must be constant except the last XX/YY in the
>   article. [] are allowed though () is more common.

it would be best if this information was in a reference, but I changed
the text a little:

| 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.  this means to keep everything in
| Subject constant except "(XX/YY)" which should be at the end.  XX and
| YY should have the same number of digits, so the first part of a 185
| part file is "(001/185)".

>   > >   > interaction with yEnc
>   > >   > =====================
>   > >
>   > >   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).
>   
>   Because you can now have a multiplart/mixed MIME article with the first
>   part being text/plain and the second holding the data.

not using yEnc, surely?

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#64025
Author: Kjetil Torgrim Homme
Date: Thu, 13 Feb 2003 03:26
86 lines
4562 bytes
[Rene]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   > the file which uniquely identifies its contents.  the chance of two
>   > files having the same hash but different content is infinitesimal: if
>   > every person on Earth each owns 150 million million files which are
>   > different from everyone else's files, there is a 50% chance of two
>   > files, worldwide, having the same hash.  this 160-bit identifying hash
>   > is called the root hash.
>   
>   I did not check that this number is correct, but I ask anyway? Did
>   you include the birthday paradoxon in that calculation?

yes.

>   And is it based on 160bit or on the 72bits we're using in the
>   header?

160 bits.  it's not so impressing with 72 bits, we can only have eight
unique files each :-) but an xBin reader MUST be prepared for
collisions of root hashes restricted to 72 bits.  including the file
size as part of the xBin-ID helps a bit, I think it is realistic to
figure at least 16 bits of randomness from the size, and then we can
keep more than a thousand unique files each :-)

>   > these are MIME headers, but the article should not declare
>   > "MIME-Version: 1.0" unless it is a well formed MIME document.
>   
>   Why not change the should not in a MUST NOT here? If it isn't
>   MIME, it shouldn't be labelled as such.

ok.

>   > overhead (40% for uuencode, 25% for BASE64, 3% for yEnc).
>   
>   Isn't it about 33% + a tiny fraction for the line breaks in case
>   of Base64?  I mean, you expand 3 chars to 4, so it becomes 4/3 ->
>   1/3 overhead. (Your 25% is 3/4?)

you are right.  I did think BASE64 was suspiciously good compared to
uuencode :-)

>   > the filename MUST be specified using Content-Disposition in the first
>   > part.  Content-Disposition MAY be included in other parts as well.
>   
>   This somewhat contradicts the following part from the headers section:
>   "
>   xBin posters should put all meta-data about the files in suitable
>   headers.
>   
>   filename (mandatory):
>     Content-Disposition: attachment; filename="somefile.mp3"
>   "
>   
>   From the headers-section I'd put the filename in any xBin article
>   while this part now says I only need to do it in the first
>   article. Is it smart to do so ? If the first article expires then
>   I don't know the filename until someone reposts it. If I get a par
>   instead... well though luck.

good point about using a PAR file to replace the first part.  I'll
change the MAY to a SHOULD.

>   > the filename SHOULD be the same as the filename specified in the
>   > uuencode "begin" line.
>   
>   How about adding that a filename may *never* include path
>   information. The definition of "filename" may be not too binding.

there is a bit of prose about how filename from Content-Disposition
should be treated in RFC 2183, but I added "the filename SHOULD NOT
contain directory path information."

>   That's about it. Well that and maybe adding some more rationale
>   why we're using the Message-ID?

hmm, yes.  there's only this:

| xBin uses the root hash as an identifier which is put in the
| Message-ID, a header which is efficiently available for the reader
| from any news server.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#64026
Author: J.B. Moreno
Date: Thu, 13 Feb 2003 04:01
17 lines
1530 bytes
In article <1rfzqs97yw.fsf@vingodur.ifi.uio.no>,
 Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

> Rene

> >   Why not change the should not in a MUST NOT here? If it isn't
> >   MIME, it shouldn't be labelled as such.
> 
> ok.

Because it might lead people to start using it even in the context of
MIME, which would be a good thing -- checking the body would then be a
fall back position.

-- 
J.B. Moreno
Re: xBin Message-ID convention
#64029
Author: Kjetil Torgrim Homme
Date: Thu, 13 Feb 2003 06:20
38 lines
2254 bytes
[J.B. Moreno]:
>
>   In article <1rfzqs97yw.fsf@vingodur.ifi.uio.no>,
>    Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   
>   > Rene
>   
>   > >   Why not change the should not in a MUST NOT here? If it isn't
>   > >   MIME, it shouldn't be labelled as such.
>   > 
>   > ok.
>   
>   Because it might lead people to start using it even in the context
>   of MIME, which would be a good thing -- checking the body would
>   then be a fall back position.

I guess there was too little context.  this is the section in
question:

| 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):
|   Content-Type: audio/mpeg
| 
| these are MIME headers, but the article MUST NOT declare
| "MIME-Version: 1.0" unless it is a well formed MIME document.

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#64036
Author: J.B. Moreno
Date: Thu, 13 Feb 2003 17:38
29 lines
1977 bytes
In article <1rbs1g8zw5.fsf@vingodur.ifi.uio.no>,
 Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:

-why not change a should not to a must not-

> I guess there was too little context.  this is the section in
> question:
> 
> | 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):
> |   Content-Type: audio/mpeg
> | 
> | these are MIME headers, but the article MUST NOT declare
> | "MIME-Version: 1.0" unless it is a well formed MIME document.

OK, I see that now, but -- that's for MIME to say, it doesn't need to
be mentioned in xBin.

-- 
J.B. Moreno
Re: xBin Message-ID convention
#64038
Author: Jeffrey M. Vinocur
Date: Fri, 14 Feb 2003 01:10
20 lines
1698 bytes
In article <20030212141004.908$Yu@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
>
>The beauty of putting it in the Message-ID is that it allows download tools
>to use XHDR Message-ID to get everything it needs to know about the
>articles in the binary group.

Hmm.  What about duplicating it into a header as well (something
like Jeremy's proposal), so that servers can optimize XHDR for it
if they choose (and server admins could alert their clients of
this fact, and then the clients could check the box in their
newsreaders indicating to use XHDR)?  Then maybe some day we'll
be rid of it.



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: xBin Message-ID convention
#64044
Author: Kjetil Torgrim Homme
Date: Fri, 14 Feb 2003 12:43
18 lines
2028 bytes
[J.B. Moreno]:
>
>   Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
>   
>   > | these are MIME headers, but the article MUST NOT declare
>   > | "MIME-Version: 1.0" unless it is a well formed MIME document.
>   
>   OK, I see that now, but -- that's for MIME to say, it doesn't need
>   to be mentioned in xBin.

strictly true, but I don't think it hurts to make it more explicit.
after all, it's quite a rats' nest of RFC, and you can't expect
everyone to have a full grasp of them all..

-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#64057
Author: ZoSo
Date: Sun, 16 Feb 2003 20:57
30 lines
2100 bytes
> filename (mandatory):
>  Content-Disposition: attachment; filename="somefile.mp3"

Could it instead say,
filename (mandatory):
 Content-Disposition: attachment; filename="some filename.mpeg"

to demonstrate it's not restricted to only 8.3 filenames? (or *is* it? if so, please state that explicitly;)

And in:
> MIME-Version: 1.0
>   Content-Type: message/partial; id="~XB~53F8b3f9C0/1~SVLIw~~@xbin";
>           fragment=1; total=16
>   Date: Sat, 25 Jan 2003 02:06:03 +0100
>
>  Content-Type: audio/mpeg
>  Content-Transfer-Encoding: base64
>  Content-Disposition: attachment; filename="wedding.mp3"

the last line could, maybe, instead be shown as:
 Content-Disposition: attachment; filename="wedding%20march.mp3"

to demonstrate 'long' filenames + non-alphanum character encoding (per RFC-2184)?


-- 
...in FidoNet®, we called this a "tag line"
Re: xBin Message-ID convention
#64059
Author: Kjetil Torgrim Homme
Date: Mon, 17 Feb 2003 01:56
52 lines
2790 bytes
[ZoSo]:
>
>   > filename (mandatory):
>   >  Content-Disposition: attachment; filename="somefile.mp3"
>   
>   Could it instead say,
>   filename (mandatory):
>    Content-Disposition: attachment; filename="some filename.mpeg"
>   
>   to demonstrate it's not restricted to only 8.3 filenames? (or *is*
>   it? if so, please state that explicitly;)

ok.  it's now

filename (mandatory):
  Content-Disposition: attachment; filename="a picture.jpeg"

>   And in:
>   > MIME-Version: 1.0
>   >   Content-Type: message/partial; id="~XB~53F8b3f9C0/1~SVLIw~~@xbin";
>   >           fragment=1; total=16
>   >   Date: Sat, 25 Jan 2003 02:06:03 +0100
>   >
>   >  Content-Type: audio/mpeg
>   >  Content-Transfer-Encoding: base64
>   >  Content-Disposition: attachment; filename="wedding.mp3"
>   
>   the last line could, maybe, instead be shown as:
>    Content-Disposition: attachment; filename="wedding%20march.mp3"
>   
>   to demonstrate 'long' filenames + non-alphanum character encoding
>   (per RFC-2184)?

except the relevant RFC is 2231 :-), so it becomes

  Content-Disposition: attachment; filename*=us-ascii'en-us'wedding%20march.mp3
or a bit shorter:
  Content-Disposition: attachment; filename*=''wedding%20march.mp3

it suffices to protect space characters using double quotes, so I
don't think I'll complicate the example needlessly.

I'll add a note, though:

| (if characters outside US ASCII are present in the filename, they
| MUST be coded as per RFC 2231.)


-- 
Kjetil T.			|  read and make up your own mind
				|  http://www.cactus48.com/truth.html
Re: xBin Message-ID convention
#64061
Author: ZoSo
Date: Mon, 17 Feb 2003 04:07
16 lines
1641 bytes
begin  666ing all you want,
'cause in news:1risvjekl9.fsf@vingodur.ifi.uio.no,
Kjetil Torgrim Homme scribed:

> except the relevant RFC is 2231 :-), so it becomes

Thank you; I've added a caching filter criterium that says:
Not HTTP URL ends with "1rfc_index.txt"

:-)


-- 
["reader machines". <laughter>. That is rich.] - TLO, 18 Sept 2002, ignoring reality
Re: xBin Message-ID convention
#64112
Author: Curt Welch
Date: Sat, 22 Feb 2003 00:46
55 lines
4117 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:
> In article <20030212141004.908$Yu@newsreader.com>,
> Curt Welch <curt@kcwc.com> wrote:
> >
> >The beauty of putting it in the Message-ID is that it allows download
> >tools to use XHDR Message-ID to get everything it needs to know about
> >the articles in the binary group.
>
> Hmm.  What about duplicating it into a header as well (something
> like Jeremy's proposal), so that servers can optimize XHDR for it
> if they choose (and server admins could alert their clients of
> this fact, and then the clients could check the box in their
> newsreaders indicating to use XHDR)?  Then maybe some day we'll
> be rid of it.

Well, one problem of putting the same information in two places is that
download tools will normally grab the data from one place and ignore the
other copy (just as a random function of how the author decided to write
the code).  Few will bother to grab and compare the data to make sure it's
the same in both locations sometimes because there's no easy way to know
what to do if a problem is found.

What this leads to is an increased porbability that someone will create a
posting tool which is broken and not know it (because the data in one
location is differernt than the other), yet the article seems to work fine
with the download tools they checked it with.  But then, later, after 1000
people are using the broken tool, they find out that some newsreaders which
used the other header say the article is corrupted.

It's best if data is only put in one place in the article.  The fact that
we are already duplicating some information (like =ybegin/=ypart data) is
bad enough as it is.

The other issue is if it's in the Message-ID, and all the servers support
it and all the download tools use it, what's the motivation to move the
data to a "better header" down the road?  I dont see one.  It seems to just
be an issue of esthetics and "good design".  If there's not a pratical need
to move it, then you are just asking for trouble if you expect it to happen
just because "it should".  I fear we would end up with a header which no
one used.

We have explored idea of how to encode file segments "correctly" with MIME,
which is interesting.  That could be the "goal" we tried to get to.  But
there's some real convesion problems with that road.  None of the "right
ways" we have explored seem (from what I have seen) to be compatible with
what is being done now with MIME.  I haven't yet seen headers that would
both work with todays tools, and still be "the right way to do it down the
road".  And if it's not compatible with what's done today, how do we
convert without causing so many problems as to prevent anyone from wanting
to use it?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#64113
Author: Curt Welch
Date: Sat, 22 Feb 2003 01:13
61 lines
3705 bytes
Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> [Curt Welch]:
> >
> >   I think
> >   the odds of "needing" to swtich to a new hash is so small (this
> >   isn't a security application), and the problems that would arrise
> >   so great if you changed, that it would just never happen.
>
> I agree.  so how about we just drop the possibility of changing the
> hashing algorithm?  if need be, we can make a new ~XH~...~~ to
> complement the xBin information...

Works for me.  We can revist later if someone comes up with a good reason
for why we will want to change it.


>   H   hash, the most significant bits of the root hash.  at least 72
>       bits MUST be included.  the number of bits MUST be a multiple of
>       18.  the type is data.  this parameter is mandatory.
>
> the reason for "multiple of 18" is to avoid the need to understand
> equals sign padding...

Haven't you mixed up your 3's and 4's? (3x8 vs 4x6 vs 3x6).

It has to be "multiple of 24" if you are going to prevent partial bytes
which I believe is what you were aiming for.

In any case, the MIME Base64 equal sign stuff is unneeded (except as a
slight consistency check).  I don't know why they added it in the first
place.

I however was thinking the correct thing to specify was "Multiple of 6".
And requiring some minimual like 72 is fine, but the parsing tools should
work if there were less bits - i.e. an xBin ID with only 24 bits of hash
data should not be rejected as invalid if that is all that was wrong with
it.

> not sure if a numerical value and a registry is better or worse than a
> freeform string:
>
>   T   type of file.  the type is string.  this parameter defaults to
>       "data".
>
> the string data type may be giving people too much rope.

I still have to read your latest wording on the entire spec, but my thought
was to try and limit "data" to be from the Base64 character set for all
arguments to make it easy to parse and spot a valid xBin ID without any
semantic knowledge.  So this would mean that "~Trepost~~" was valid even if
it was a bit odd.

But thinking of it as Base64 data is not the same as thinking of it as a
number, because numbers can have leading zeros which in effect have no
"meaning".  i.e. ~TAB is the same as TB.  So I guess I agree that we should
not think of it as a "numeric" value.  I guess.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#64114
Author: Curt Welch
Date: Sat, 22 Feb 2003 01:37
40 lines
3144 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> In article <20030206200430.220$Gr@newsreader.com>,
>  Rene <invalid@email.addr> wrote:

> > The question is, do we give suggestions or do we simply introduce a
> > binding standard for xBin that is coincidentally compatible with most
> > of the tools out there?
>
> I don't agree with adding anything about the existing Subject
> conventions other than saying that they should be followed.  The simple
> fact of the matter is that there *is* no real standard for them,
> getting into that quagmire would be a mistake.

What you don't want to do is require that a posting tool change the way it
already formats a header just to make it "xBin" compatible.  We want to
make it as easy as possible for people to modify existing tools to include
xBin "labels" on posts without trying to force them to rewrite the rest of
the tool or change things to our "standard" which they already felt they
were doing "correctly".

I'm game to include a subject format standards as part of xBin, but I want
to make sure it's done in a way which won't discorage anyone from adding or
using xBin.  It might for example be best that we just tell them what not
to do in the Subject and tell them what to watch out for and why and leave
it to that.

But, you do want to give someone writting a tool from the ground up enough
information to know how to do subject "correctly".

One tricky problem with the subect is how to label a partial repost if the
article size doesn't match the orginal post.  You don't want the old
download tools getting confused and trying to use a repost which it has no
hope of using correctly.  This I think is one of many issues we won't
really understand how to deal with until we get more practical expericence
using xBin in the real world.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#64115
Author: Curt Welch
Date: Sat, 22 Feb 2003 01:56
70 lines
3883 bytes
Rene <invalid@email.addr> wrote:
> Are there leading zeros?
> (001/123) vs (1/123).

Yes. The golden rule of multipart posting is that it's important that
subjects sorted alpabetically will put posts in the correct order.  If you
leave out leading zeros (even if it's space padded), you don't know if
11/200 sorts before or after 100/200.

> Are spaces allowed ?
> (  1/123) vs (1/123) vs (1 / 123)

No.

The correct way is that it MUST BE (XX/YY) where XX and YY are the same
length, and there are no spaces, and XX is padded with leading zeros as
needed by YY is never padded with leading zeros.

What's important is that every post in a multipart post must have the exact
same subject, with the same length for every post in the set, with the only
thing being different is the XX value.  It is very wrong for example to
have the first part (1/10), and the last part (10/10) so the last subject
is longer.

> Round or edge brackets? mixing them allowed (how ugly!)
> (1/123) vs [1/123] vs {1/123} vs [1/123) etc.

Parsing tools should deal with () or [] or nothing - i.e. 01/24.  But the
posting tools should only use () I believe.

> Do we include a second number-set ?

We allow it, but don't define it.  (but it has no meaning to xBin).

> (xBin is limited to a one-file view,
> the old system is not! How do we deal with that?)

The (XX/YY) which specifies the articles must be the last number set (i.e.
two numbers around a /) in the header, but what comes before that can be
anything.

> Where does the filename stand and how is it marked?
> REQ:asdkgkadhah HERE's asdjfjakbf "filexyz.abc" blafaselblabla (1/123)

Somewhere before the (XX/YY).  I have to double check what yEnc tried to do
with the file size and what other's are doing and where the yEnc marker is
placed these days.

I don't think we should even try to define a standard where the file name
can be relieably extracted from the Subject:.  That would just encourage
people to try and do that and that's wrong.

> or more easily readable:
> <arbitrary user text> SPACE "<filename>" SPACE <arbitrary user text>
> SPACE <chunk number> or...?
>
> Defining it rigidly would help non-xBin newsreaders (as long as it
> doesn't break them with "our" standard) but it does also prolong the
> usage of the subject which we ultimately want to get rid off for good.

Yeah, I think that's too rigid.

> Not defining it wouldn't change anything from status quo, or make the
> situation worse when a new xBin posting tool is being written which does
> break the old non-xBin clients.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#64133
Author: J.B. Moreno
Date: Sun, 23 Feb 2003 00:27
23 lines
2152 bytes
In article <20030221203750.153$II@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> "J.B. Moreno" <planb@newsreaders.com> wrote:
-snip-
> > I don't agree with adding anything about the existing Subject
> > conventions other than saying that they should be followed.  The
> > simple fact of the matter is that there *is* no real standard for
> > them, getting into that quagmire would be a mistake.
> 
> What you don't want to do is require that a posting tool change the
> way it already formats a header just to make it "xBin" compatible. 
> We want to make it as easy as possible for people to modify existing
> tools to include xBin "labels" on posts without trying to force them
> to rewrite the rest of the tool or change things to our "standard"
> which they already felt they were doing "correctly".

Nor do you want to introduce Yet Another Subject Conventionm, which
gets supported by some and ignored by others.

-- 
J.B. Moreno
Re: xBin Message-ID convention
#64132
Author: Curt Welch
Date: Sun, 23 Feb 2003 00:44
18 lines
2121 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:
> Nor do you want to introduce Yet Another Subject Conventionm, which
> gets supported by some and ignored by others.

Yeah, what you want to try and do is to just document the simple stuff that
is in common use and has fairly universal agreement.

xBin is an attempt the move meta-data out of the Subject and make the
Subject irrelevent, so the only real purpose of including information about
how to format the Subject: is to make sure the tools create articles which
are backward compatible with current systems.  So the only thing we should
spec is the minimal amount of detail required to make sure xBin subjects
are backward compatiable with current tools.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: xBin Message-ID convention
#64166
Author: J.B. Moreno
Date: Mon, 24 Feb 2003 03:06
22 lines
2235 bytes
In article <20030222194434.791$A7@newsreader.com>, 
 Curt Welch <curt@kcwc.com> wrote:

> xBin is an attempt the move meta-data out of the Subject and make the
> Subject irrelevent, so the only real purpose of including information about
> how to format the Subject: is to make sure the tools create articles which
> are backward compatible with current systems.  So the only thing we should
> spec is the minimal amount of detail required to make sure xBin subjects
> are backward compatiable with current tools.

Well, I think it's most likely that to start with the posting tools
will be modifications of /existing/ tools, so I don't believe that's
not going to be a problem.

But in case I'm wrong -- write up a subject spec page elsewhere, and
then just refer to that page.  Don't include it an "official" part of
the xBin spec (you write it, and I'll put it up on the newsreaders.com
web page).

-- 
J.B. Moreno
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