🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
14 messages
14 total messages Started by Sleepy Fri, 29 Mar 2002 07:23
on this yEnc matter
#57742
Author: Sleepy
Date: Fri, 29 Mar 2002 07:23
51 lines
3256 bytes
There has been a lot of talk here about whether or not yEnc is bad for
usenet.  That issue is dead.  It's here now, it is an improvement over
UUE/base64, people will use it until a proper solution is created.  Accept
it and move on.

Jeremy asked why there were not many vocal complaints about using UUE
before yEnc came out.  Well, here is my answer as a fairly normal user. 
Until I read about yEnc I had no idea that usenet was nearly 8bit and that
something like yEnc was possible.  I thouhgt that we HAD to use something
like UUE.  People don't ussually complain too loudly when they think there
is no better alternative.

Jermey, here's a little advice.  Don't bother responding to complaints
about that page or your views.  Instead spend that time writting up a
draft of that idea that seems to running around in your head.  That will
give these people something more constructive to discuss.  By the way, you
mentioned that Content-Type has a parameter for a file name,  that
parameter was deprecated in favor of Content-Dispositon.

For my part I've spent the last few days reading various RFC's trying to
understand the problem of doing this in MIME.  Here is my take on the
matter.  THIS IS JUST FOR DISCUSSION.  It is not intended to be a full
solution.  It may not even be correct.


start := starting octet for this part
stop := ending octet for this part
total := length of file in octets
F-md5 := md5 digest (base64) of file
name := file name conformant to Content-Disposition
data := encoded as per yEnc ( without the extra headers )

Subject: description --- "name" total start stop
Mime-Version: 1.0
Content-Type: application/x-enc  size=total
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment filename=name
Content-MD5: md5 of this part
Content-ID: <F-md5@start.stop>

data


The subject stuff doen't really matter except to the user, and possibly as
a shortcut for the app.  The main problem I have is with
Content-Disposition.  Should the filename be the same for all parts? Or
should only the first part have the normal name and all subsequent parts
be named name.2, name.3, etc.

So, lets here all the comlaints, suggestions, and alternatives.
Re: on this yEnc matter
#57746
Author: Claus Färber
Date: Fri, 29 Mar 2002 12:07
20 lines
1694 bytes
Sleepy <sleepy@mycomp.org> schrieb/wrote:
> Content-Type: application/x-enc  size=total
> Content-Transfer-Encoding: 8bit
> Content-Disposition: attachment filename=name

> The subject stuff doen't really matter except to the user, and possibly as
> a shortcut for the app.  The main problem I have is with
> Content-Disposition.  Should the filename be the same for all parts? Or
> should only the first part have the normal name and all subsequent parts
> be named name.2, name.3, etc.

If you make yEnc a Content-Type, it is a file format. So the  
filename should be that of the single yEnc file contained in this  
message, i.e. something like name-0000.ync.

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: on this yEnc matter
#57763
Author: Sleepy
Date: Sat, 30 Mar 2002 06:44
21 lines
2110 bytes
On Fri, 29 Mar 2002 05:07:00 -0700, Claus F�rber wrote:

> Sleepy <sleepy@mycomp.org> schrieb/wrote:
>> Content-Type: application/x-enc  size=total
>> Content-Transfer-Encoding: 8bit
>> Content-Disposition: attachment filename=name
> 
>> The subject stuff doen't really matter except to the user, and possibly
>> as a shortcut for the app.  The main problem I have is with
>> Content-Disposition.  Should the filename be the same for all parts? Or
>> should only the first part have the normal name and all subsequent
>> parts be named name.2, name.3, etc.
> 
> If you make yEnc a Content-Type, it is a file format. So the filename
> should be that of the single yEnc file contained in this message, i.e.
> something like name-0000.ync.

I'm not talking about ussing the yEnc file format here.  What I'm suggesting
is useing the yEnc encoding on the data, basically using yEnc as a CTE.
That changes things, the only file name we have is the original one.
Re: on this yEnc matter
#57766
Author: Claus Färber
Date: Sat, 30 Mar 2002 10:22
27 lines
2032 bytes
Sleepy <sleepy@mycomp.org> schrieb/wrote:
> On Fri, 29 Mar 2002 05:07:00 -0700, Claus F�rber wrote:
>> Sleepy <sleepy@mycomp.org> schrieb/wrote:
>>> Content-Type: application/x-enc  size=total
>>> Content-Transfer-Encoding: 8bit
>>> Content-Disposition: attachment filename=name
>> If you make yEnc a Content-Type, it is a file format. [...]

> I'm not talking about ussing the yEnc file format here.  What I'm suggesting
> is useing the yEnc encoding on the data, basically using yEnc as a CTE.
> That changes things, the only file name we have is the original one.

Then the headers would have to look like this:

| Content-Type: video/mpeg
| Content-Transfer-Encoding: yEnc
| Content-Disposition: attachment; filename="original-file.name

But this would not be correct on multipart posts. These would have  
to be split using message/partial (which does not allow 8bit  
encodings)

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: on this yEnc matter
#57769
Author: Bob Cousins
Date: Sat, 30 Mar 2002 13:12
10 lines
1343 bytes
Claus F�rber wrote:

>But this would not be correct on multipart posts. These would have  
>to be split using message/partial (which does not allow 8bit  
>encodings)

What is the reason for that?
-- 
Bob Cousins
Re: on this yEnc matter
#57771
Author: Nuutti Kotivuori
Date: Sat, 30 Mar 2002 14:24
17 lines
1747 bytes
Bob Cousins wrote:
> Claus F�rber wrote:
> 
>> But this would not be correct on multipart posts. These would have
>> to be split using message/partial (which does not allow 8bit
>> encodings)
> 
> What is the reason for that?

Read the archives from this group a bit - it's been discussed over and
over.

Basically the initial limitation comes from mail gateways which cannot
be expected to be able to do conversions on a partial message.

-- Naked
Re: on this yEnc matter
#57772
Author: Claus Färber
Date: Sat, 30 Mar 2002 14:42
56 lines
3596 bytes
Bob Cousins <bob@lintilla.demon.co.uk> schrieb/wrote:
> Claus F�rber wrote:
>> But this would not be correct on multipart posts. These would have
>> to be split using message/partial (which does not allow 8bit
>> encodings)

> What is the reason for that?

A basic concept of MIME is that everything non-7bit can be recoded
on gateways (e.g. news<->mail, 8BITMIME<->non-8BITMIME) if
necessary.

To quote from RFC 2046:

|  Because data of type "message" may never be encoded in base64 or
|  quoted-printable, a problem might arise if "message/partial" entities
|  are constructed in an environment that supports binary or 8bit
|  transport.  The problem is that the binary data would be split into
|  multiple "message/partial" messages, each of them requiring binary
|  transport.  If such messages were encountered at a gateway into a
|  7bit transport environment, there would be no way to properly encode
|  them for the 7bit world, aside from waiting for all of the fragments,
|  reassembling the inner message, and then encoding the reassembled
|  data in base64 or quoted-printable.

NB: This is due to the fact that the Content-Encoding header is
only present at the beginning of the split message, i.e. in the
first message fragment. This also means that the same encoding has  
to be used for all fragments.

|                                       Since it is possible that
|  different fragments might go through different gateways, even this is
|  not an acceptable solution.  For this reason, it is specified that
|  entities of type "message/partial" must always have a content-
|  transfer-encoding of 7bit (the default).  In particular, even in
|  environments that support binary or 8bit transport, the use of a
|  content- transfer-encoding of "8bit" or "binary" is explicitly
|  prohibited for MIME entities of type "message/partial". This in turn
|  implies that the inner message must not use "8bit" or "binary"

Of course, there's no real reason why message/partial could not be
encoded:

Unlike with multipart/* or message/rfc822, where it's a good idea
not to have an entity hidden in several levels of encoding to ease
parsing, you already do have to recombine a message split into
message/partial (even recursively!) in order to be able to handle
it. Undoing a CTE would not be too much additional effort here.

application/partial-message anyone?

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: on this yEnc matter
#57810
Author: Sleepy
Date: Mon, 01 Apr 2002 06:38
32 lines
2644 bytes
On Sat, 30 Mar 2002 03:22:00 -0700, Claus F�rber wrote:

> Sleepy <sleepy@mycomp.org> schrieb/wrote:
>> On Fri, 29 Mar 2002 05:07:00 -0700, Claus F�rber wrote:
>>> Sleepy <sleepy@mycomp.org> schrieb/wrote:
>>>> Content-Type: application/x-enc  size=total
>>>> Content-Transfer-Encoding: 8bit
>>>> Content-Disposition: attachment filename=name
>>> If you make yEnc a Content-Type, it is a file format. [...]
> 
>> I'm not talking about ussing the yEnc file format here.  What I'm
>> suggesting is useing the yEnc encoding on the data, basically using
>> yEnc as a CTE. That changes things, the only file name we have is the
>> original one.
> 
> Then the headers would have to look like this:
> 
> | Content-Type: video/mpeg
> | Content-Transfer-Encoding: yEnc
> | Content-Disposition: attachment; filename="original-file.name
> 
> But this would not be correct on multipart posts. These would have to be
> split using message/partial (which does not allow 8bit encodings)

I originally thought about this.  I still think that a yEnc like CTE is a
good idea simply because there is no 8bit CTE, we only have two 7bit
CTEs.  I'm currently trying to find out why the idea seems to have been
rejected.  If it turns out that it was only because of testing the new
CTE with existing implemetations, that might not e to hard to do.
Besides  there is no reason we can't treat it as an application data type
anyway.
Re: on this yEnc matter
#57812
Author: Sleepy
Date: Mon, 01 Apr 2002 06:44
24 lines
1973 bytes
On Sat, 30 Mar 2002 07:42:00 -0700, Claus F�rber wrote:

> Bob Cousins <bob@lintilla.demon.co.uk> schrieb/wrote:
> 
> application/partial-message anyone?
> 
Could be done...

Content-Type: application/partial type="image/jpeg" .....

I don't know, perhaps message/split would be better.  It would at least
convey the proper meaning.

Subject: description --- "name" total start stop
Mime-Version: 1.0
Content-Type: message/split type="image/jpeg" size=total
Content-Transfer-Encoding: yEnc
Content-Disposition: attachment filename=name
Content-MD5: md5 of this part
Content-ID: <F-md5@start.stop>

Of course we're back to the filename issue again.  Still, I do like the
idea here.
Re: on this yEnc matter
#57820
Author: Claus Färber
Date: Mon, 01 Apr 2002 10:19
60 lines
3318 bytes
Sleepy <sleepy@mycomp.org> schrieb/wrote:
> On Sat, 30 Mar 2002 07:42:00 -0700, Claus F�rber wrote:
>> Bob Cousins <bob@lintilla.demon.co.uk> schrieb/wrote:
>> application/partial-message anyone?
>>
> Could be done...

> Content-Type: application/partial type="image/jpeg" .....

> I don't know, perhaps message/split would be better.  It would at least
> convey the proper meaning.

Have you read what I wrote/quoted from RFC 2047? Obviously not;  
otherwise you'd know why message/* is not an option.

> Subject: description --- "name" total start stop
> Mime-Version: 1.0
> Content-Type: message/split type="image/jpeg" size=total
                            ^^^ ;            ^^^ ;
> Content-Transfer-Encoding: yEnc
> Content-Disposition: attachment filename=name
                                ^^^ ;
> Content-MD5: md5 of this part
> Content-ID: <F-md5@start.stop>

> Of course we're back to the filename issue again.  Still, I do like the
> idea here.

No, we are *not*. All Countent-* headers describe one entity. It  
is not possible that one header (Content-Type) describes one part  
and another one (Content-Disposition) describes the whole file.

Of course, this is not a problem here because
application/partial-message would have an inner header like  
message/partial. I.e. the first part would look like this:

| Newsgroups alt.test
| Date: 01 Apr 2002 11:11:11 +11:11
| From: John Doe <john.doe@example.com>
| Subject: Nice File
| Message-ID: <sldjkflskdjflksdjf@example.com>
| Content-Type: application/partial-message; part=1; count=10
| Content-Transfer-Encoding: 8bit (might also be qp, base64, ...)
|
| Content-Type: image/jpeg
| Content-Transfer-Encoding: yEnc (or whatever)
| Content-Disposition: attachment; filename="foo.jpeg"
| Content-Range: 1-1000/10000
|
| aslkfdsl�akd�lskdf�lskflsdjkflksjadvlkhjn...

The inner header could be repeated in each message; Content-Range  
and Content-Transfer-Encoding: yEnc (or whatever) would only be  
allowed within the application/partial-message type.

Claus
-- 
------------------------ http://www.faerber.muc.de/ ------------------------
OpenPGP: DSS 1024/639680F0 E7A8 AADB 6C8A 2450 67EA AF68 48A5 0E63 6396 80F0
Re: on this yEnc matter
#57830
Author: Bob Cousins
Date: Mon, 01 Apr 2002 21:48
34 lines
2555 bytes
Claus F�rber wrote:

>The inner header could be repeated in each message; Content-Range  
>and Content-Transfer-Encoding: yEnc (or whatever) would only be  
>allowed within the application/partial-message type.

Surely this doesn't solve the fundamental filename to the user problem
either.

Although the "correct" ISO 7 layer way is to think of messages as
being transported by successive layers, this only works if you are
going to deliver *all* data to the user. i.e. like a transport
gateway.

The problem here is that the data sent to the user needs to be
selected; this is much more like a router that snoops inside IP
packets to see what TCP data (if any) is being transmitted, and
routing accordingly.

So you really need a copy of the higher layer headers in the wrapper,
because you can't peek into the body with NNTP. But you can't use
solely the wrapper, because with an external tool you might not have
it.

So while we insist the solution is a clean architectural one, and not
a hack, there will be an impasse, which is why I suspect yEnc went off
and did their own thing.

We need something like a file directory which provides the filename
information to the higher layer (user), and specifies to the machine
how to get it.
-- 
Bob Cousins
Re: on this yEnc matter
#57916
Author: Sleepy
Date: Thu, 04 Apr 2002 07:36
60 lines
3728 bytes
On Mon, 01 Apr 2002 03:19:00 -0700, Claus F�rber wrote:

> Sleepy <sleepy@mycomp.org> schrieb/wrote:
> 
>> Content-Type: application/partial type="image/jpeg" .....
> 
>> I don't know, perhaps message/split would be better.  It would at least
>> convey the proper meaning.
> 
> Have you read what I wrote/quoted from RFC 2047? Obviously not;
> otherwise you'd know why message/* is not an option.

I read it.  I also recognized it from the message/partial SUBTYPE,
something I was not using so I ignored it.  Of course I also missed the
tiny paragraph that is 5.2.4 which limits all future subtypes to 7bit.
This is really a problem with the RFC, a statement affecting the entire
message/* hierarchy is contained in a subtype.

> 
>> Subject: description --- "name" total start stop Mime-Version: 1.0
>> Content-Type: message/split type="image/jpeg" size=total
>> Content-Transfer-Encoding: yEnc
>> Content-Disposition: attachment filename=name
>> Content-MD5: md5 of this part
>> Content-ID: <F-md5@start.stop>
> 
>> Of course we're back to the filename issue again.  Still, I do like the
>> idea here.
> 
> No, we are *not*. All Countent-* headers describe one entity. It is not
> possible that one header (Content-Type) describes one part and another
> one (Content-Disposition) describes the whole file.
> 
> Of course, this is not a problem here because
> application/partial-message would have an inner header like
> message/partial. I.e. the first part would look like this:
> 
> | Newsgroups alt.test
> | Date: 01 Apr 2002 11:11:11 +11:11
> | From: John Doe <john.doe@example.com>
> | Subject: Nice File
> | Message-ID: <sldjkflskdjflksdjf@example.com>
> | Content-Type: application/partial-message; part=1; count=10;
    id="f_md5"; size=total
> | Content-Transfer-Encoding: 8bit (might also be qp, base64, ...)
> |
> | Content-Type: image/jpeg
> | Content-Transfer-Encoding: yEnc (or whatever)
> | Content-Disposition: attachment; filename="foo.jpeg"
> | Content-Range: 1-1000/10000
> |
> | aslkfdsl�akd�lskdf�lskflsdjkflksjadvlkhjn...
> 
> The inner header could be repeated in each message; Content-Range and
> Content-Transfer-Encoding: yEnc (or whatever) would only be allowed
> within the application/partial-message type.
 
Add in those two parameters and it just might work.  I'll post something
a bit cleaner in a bit.
Re: on this yEnc matter
#57917
Author: Sleepy
Date: Thu, 04 Apr 2002 08:04
50 lines
2802 bytes
Here is a new spec based upon message/partial.  As such there are two
levels of headers.  The top level headers are specified below.  The second
level depends upon the file being sent.  Basically you first build a
message to send the full file, then split it same as message/partial. 
Reassembly semantics are the same as for message/partial.  Any CTE is
allowed for both the inner and outer blocks.  Also all information needed
for threading and reassembly is in the content-type header.

required headers:
  Content-Type: application/partial; number=; total=; size=; type=; id=""
  Content-MD5: .....
  Content-Transfer-Encoding: any

required parameters:
  number: integer specifying the fragment number total:  integer
  specifying the total number of fragments id:     base64 encoded md5 of
  file
  size:   integer specifying the size in octets of the file type:
  content-type of file

Here is an example:

first message part:

* Subject: Family photo [1/5]
* Message-ID: <13492384@foo.bar>
* Mime-Version: 1.0
* Content-Type: application/partial number=1; total=5; size=37292;
type=image/jpeg; id="asfdsds3232" * Content-Transfer-Encoding: 8bit *
Content-MD5: afi4eerj9
*
* Subject: Family photo
* Message-ID: <83829843dkj@localhost> * Mime-Version: 1.0 * Content-Type:
image/jpeg
* Content-Transfer-Encoding: x-yenc
* Content-Disposition: attachment name="photo.jpg" * * data goes here

later message parts:

* Subject: Family photo [3/5]
* Message-ID: <13492384@foo.bar>
* Mime-Version: 1.0
* Content-Type: application/partial number=3; total=5; size=37292;
type=image/jpeg; id="asfdsds3232" * Content-Transfer-Encoding: 8bit *
Content-MD5: ahoe9839qjfr
*
* data goes here

How's that?
Re: on this yEnc matter
#57931
Author: Sleepy
Date: Thu, 04 Apr 2002 20:27
40 lines
2477 bytes
On Thu, 04 Apr 2002 01:04:02 -0700, Sleepy wrote:


> Here is an example:
> 
> first message part:
> 
> * Subject: Family photo [1/5]
> * Message-ID: <13492384@foo.bar>
> * Mime-Version: 1.0
> * Content-Type: application/partial number=1; total=5; size=37292;
> type=image/jpeg; id="asfdsds3232" * Content-Transfer-Encoding: 8bit *
> Content-MD5: afi4eerj9
> *
> * Subject: Family photo
> * Message-ID: <83829843dkj@localhost> * Mime-Version: 1.0 *
> Content-Type: image/jpeg
> * Content-Transfer-Encoding: x-yenc
> * Content-Disposition: attachment name="photo.jpg" * * data goes here
> 
> later message parts:
> 
> * Subject: Family photo [3/5]
> * Message-ID: <13492384@foo.bar>
> * Mime-Version: 1.0
> * Content-Type: application/partial number=3; total=5; size=37292;
> type=image/jpeg; id="asfdsds3232" * Content-Transfer-Encoding: 8bit *
> Content-MD5: ahoe9839qjfr
> *
> * data goes here
> 
Now that it's posted the flaw becomes obvious.  If the first part of the
post dissapears then we lose all information about the encoding.  There
would be no way to decode the other parts.  If you need an example of why
this matters think of using PAR files to replace missing parts, it only
works if you can decode the posts.  If we copy the inner headers to all
the other posts we might as well just merge them back into the main
headers.  In which case we are left with Jeremy's idea which actually
looks good.
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