🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by J.B. Moreno Wed, 15 Aug 2001 19:47
Re: [pan-users] Multipart binary header (was RE: [pan-users] CVS
#53773
Author: J.B. Moreno
Date: Wed, 15 Aug 2001 19:47
62 lines
3618 bytes
On 8/13/01 1:24 PM, Jed S. Baer at <thag@frii.com> wrote:

> Albert Hopkins wrote:
>> 
>> Actually, a good point was brought up.  Why not propose a header to identify
>> a multipart binary message.  If all the distributers of newsreaders/posters
>> could agree on a format and implement it, that would make things a LOT
>> better for all of us.  Would nntp:news.software.newsreaders be a good forum
>> to bring this up?

news.software.newsreaders doesn't really exist, what you want is
news.software.readers.

> I was wondering the same thing. I don't know where nntp is discussed.
> I'd think three headers would do it.
> 
> X-Multipart:Yes
> X-multipart-ID:{some id string}
> X-Multipart-Part:{n}
> 
> Or, X-Multipart:Yes could be inferred from the presence of the other
> headers. The ID string could be NNTP-Posting-Host, plus some random
> string. Well, I don't know how that'd work with fills coming from
> another source. At some point, maybe the user just has to manually put
> things together.
> 
> Well, finding the right forum is the place to start.

This isn't strictly speaking a NNTP issue, it's a newsreader issue,
which means it goes in news.software.readers.

In a separate discussion with a newsreader author I recently proposed:

>Binary-Info:  original-size=42830; encoded-size=47129; part-size=17658;
> num-parts=2; part-number=1; file-name="My nuddie pict";
> mid-token="MD5 hash of filename, base 64, plus 2 random chars"
>Binary-References: <1st-id> <2ndid>

Binary-References could be optionally left out by overloading
References -- it's not what it is intended for or regularly used as,
but it would put it in the overview which would make it dead simple to
make sure all parts are present and would solve the problem of what to
do with servers that don't support XHDR for retrieving individual
headers.

Notice that Binary-Info does NOT start with an X and uses the MIME
parameter convention of parametername="value" where the quotes are
option if there is no white space and nothing that needs to be escaped.

BTW -- this came up as part of a discussion for a new binary posting
format (in news.software.nntp), one that is basically 8 bit clean and
thus saves all of the extra wastage that is associated with base64 and
uu.

I would /strongly/ suggest that these additions all be tied together --
it would make it more likely to get everything supported, because
together they make a practically unbeatable combo (smaller size, easier
processing, and ease of part handling).

-- 
J.B. Moreno
Re: [pan-users] Multipart binary header (was RE: [pan-users] CVS
#53776
Author: Andrew Gierth
Date: Wed, 15 Aug 2001 21:26
30 lines
2182 bytes
>>>>> "J" == J B Moreno <planb@newsreaders.com> writes:

 J> In a separate discussion with a newsreader author I recently proposed:

 >> Binary-Info:  original-size=42830; encoded-size=47129; part-size=17658;
 >> num-parts=2; part-number=1; file-name="My nuddie pict";
 >> mid-token="MD5 hash of filename, base 64, plus 2 random chars"
 >> Binary-References: <1st-id> <2ndid>

You're looking for MIME:

 Content-Type: message/partial; number=1; total=2; id="blahblah@blah"

and at the start of the first part, in the encapsulated entity headers:

 Content-Type: image/jpeg; name="My nuddie pict"
 Content-Length: 42830
 Content-Transfer-Encoding: base64
 Content-MD5: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

You can bend the MIME standards a bit and use QP-lite (or binary, if
you have a transport that can support it) instead of base64; MIME's
restriction to 7bit for message/partial is to accomodate gateways.

_Don't_ go off and reinvent some other totally incompatible method
given that this already exists.

-- 
Andrew.
Re: [pan-users] Multipart binary header (was RE: [pan-users] CVS
#53782
Author: J.B. Moreno
Date: Thu, 16 Aug 2001 03:31
61 lines
3422 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:

> >>>>> "J" == J B Moreno <planb@newsreaders.com> writes:
> 
>  J> In a separate discussion with a newsreader author I recently proposed:
> 
>  >> Binary-Info:  original-size=42830; encoded-size=47129; part-size=17658;
>  >> num-parts=2; part-number=1; file-name="My nuddie pict";
>  >> mid-token="MD5 hash of filename, base 64, plus 2 random chars"
>  >> Binary-References: <1st-id> <2ndid>
> 
> You're looking for MIME:
> 
>  Content-Type: message/partial; number=1; total=2; id="blahblah@blah"

The mid-token wasn't a replacement for the Message-ID, but rather
something that all parts of a given file would include in the id of
their respective articles.

That would allow finding all of the parts using XPAT.

> and at the start of the first part, in the encapsulated entity headers:
-snip-
> You can bend the MIME standards a bit and use QP-lite (or binary, if
> you have a transport that can support it) instead of base64; MIME's
> restriction to 7bit for message/partial is to accomodate gateways.

You'd want to bend it a bit more than the above, you want most of the
info to be available in the articles headers, and not in the
encapsulated entity headers.  But I guess that would be OK with a
message/partial as it is information about the completed article.  So
the name would need to be moved to the Content-Type of the articles
headers.

 Content-Type: message/partial; number=1; total=2; id="blahblah@blah"
  name="My nuddie pict"; original-size=42830; encoded-size=47129

and then

Content-Type: image/jpeg
Content-Length: 17658
Content-Transfer-Encoding: quoted-printable
Content-MD5: blah


> _Don't_ go off and reinvent some other totally incompatible method
> given that this already exists.

I agree, it's just that Content-Type hadn't occurred to me.

Any opinion about a parts list?  New header vs overriding References?
I'd incline towards the later to ensure that it goes in the overview.

Whether a new header or a new use for an old one, I think it's really
time to get rid of the idea that you have to "guess" whether or not
parts belong together and whether or not they are complete.

-- 
JBM
"Your depression will be added to my own" --  Marvin of Borg
Re: [pan-users] Multipart binary header (was RE: [pan-users] CVS
#53801
Author: J.B. Moreno
Date: Thu, 16 Aug 2001 21:11
50 lines
3625 bytes
Brian Kraft <bkraft@nyx10.nyx.net> wrote:

> J.B. Moreno wrote:
> 
> >Any opinion about a parts list?  New header vs overriding References?
> >I'd incline towards the later to ensure that it goes in the overview.
> 
> I've asked for a posting agent to include an option to put a list of
> part numbers with their corresponding msg-ids in the (0/N) section.
> Newsreaders, however, retrieve articles by MID in various ways; OE,
> for example, must have the news: prefix; or to retrieve from a
> specific server, the server's name and MID in URL format.

The first part is simply then not thinking it'd be useful.  The second
objection (specifying a specific server) is inherent in what is going on
and can't be avoided.

> I wouldn't want to see a parts list header bloat the overviews.

Being able to cut down the traffic in checking out to see if the full
article is present, would make up for the cost.

> >Whether a new header or a new use for an old one, I think it's really
> >time to get rid of the idea that you have to "guess" whether or not
> >parts belong together and whether or not they are complete.
> 
> There is a lot of reposting of individual segments only, by request.
> Agent guesses correctly to fill them into the original combined post,
> which is what the requesters want to see.

Why should they guess, is my point.  If they have to guess they can get
it wrong.  And it doesn't take much to come up with a scheme to make
that unnecessary: even if you don't want to allow reposting the article
with the same message-id (and I would consider that acceptable if it was
a true reposting, i.e. same body, same basic headers, only difference
being those added by the injector), it's not too much to come up with a
scheme for binaries along the lines of <unique.partnum.idtoken@fqdn>.
If it has the same id token then it's part of the same file, and you can
use the number before the token to decide how to decode join things.  Of
course this would be redundant information, but that's a good thing as
long as it doesn't consume too much space.

The whole process of posting binaries should be looked and an agreeable
standard worked out that covers the bases adequately to avoid all of
this by-guess-and-by-golly crap that is currently taking place.

-- 
JBM
"Your depression will be added to my own" --  Marvin of Borg
Re: [pan-users] Multipart binary header (was RE: [pan-users] CVS
#53822
Author: The Archiver
Date: Fri, 17 Aug 2001 10:09
25 lines
1857 bytes
planb@newsreaders.com (J.B. Moreno) wrote:

>The whole process of posting binaries should be looked and an agreeable
>standard worked out that covers the bases adequately to avoid all of
>this by-guess-and-by-golly crap that is currently taking place.

Of course you are right, but I dont see any enthusiam for such a project.

We could either switch to MIME (and adapt a Mail-method to Usenet),
improve UU (with something as yEnc),
or create something completely new (which would take very long until 
final acceptance is reached).

The last bigger change to the 'process of posting binaries' was the method
to split files into .000 .001  or .r00  .r01 ... pieces.
This did work on the existing system with a small, additional software.
The Usenet seems to prefer the method of 'small steps'.

The entire topic of 'posting binaries' will come up again and again until
we all together decide to do something.

-- 
The Archiver

Re: [pan-users] Multipart binary header (was RE: [pan-users] CVS
#53847
Author: J.B. Moreno
Date: Fri, 17 Aug 2001 22:47
40 lines
3001 bytes
In article <5509c.h81202@archiver.winews.net>, 
 The Archiver <archiver@i3w.com> wrote:

> planb@newsreaders.com (J.B. Moreno) wrote:
> 
> >The whole process of posting binaries should be looked and an agreeable
> >standard worked out that covers the bases adequately to avoid all of
> >this by-guess-and-by-golly crap that is currently taking place.
> 
> Of course you are right, but I dont see any enthusiam for such a project.
> 
> We could either switch to MIME (and adapt a Mail-method to Usenet),
> improve UU (with something as yEnc),
> or create something completely new (which would take very long until 
> final acceptance is reached).

I think it's possible to come up with an agreeable compromise -- for
instance, with just a bit of work the begin/end lines of yEnc could be
made to work within MIME: if the begin is "Begin: blah\n\n" and the end
is "\n\n--end blah--\n".  Require that MIME messages have the begin as
the last "header" in the part and use the end as the boundary.  Presto,
anyone just looking for the new encoding has clear begin/end lines and
anyone doing the MIME parsing has a file that contains the encoded
data.

> The last bigger change to the 'process of posting binaries' was the
> method to split files into .000 .001  or .r00  .r01 ... pieces. This
> did work on the existing system with a small, additional software.
> The Usenet seems to prefer the method of 'small steps'.
> 
> The entire topic of 'posting binaries' will come up again and again
> until we all together decide to do something.

I think it's a mistake to wait for "all" in something like this -- talk
it up yes (part of the purpose of this thread), but when you think
you've got a new winner let it loose and see how it does.

-- 
J.B. Moreno
Re: [pan-users] Multipart binary header (was RE: [pan-users] CVS
#53862
Author: The Archiver
Date: Sat, 18 Aug 2001 07:30
22 lines
1749 bytes
"J.B. Moreno" <planb@newsreaders.com> wrote:

>I think it's possible to come up with an agreeable compromise 

I agree - and I'd be happy if you help me with the next steps.
I'll be back in nine days (from a short trip).

>I think it's a mistake to wait for "all" in something like this -- talk
>it up yes (part of the purpose of this thread), but when you think
>you've got a new winner let it loose and see how it does.

I believe that a combined effort is necessary to establish
something new. In this particular case I've stopped to be
a "lonely wolf" on Usenet. And 'all' in this context means
the handful of people involved here :-)

If we are able to create a good combination we might succeed.

-- 
The Archiver

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads