🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57517

Re: [yEnc] A small MIME fix

#57517
From: Nuutti Kotivuori
Date: Thu, 21 Mar 2002 18:56
129 lines
6919 bytes
Juergen Helbing wrote:
> From my own (older) "MIME-proposals":
> 
> Content-Type: application/octet-stream; name="al_larsonbw026_stranger.jpg.ync"
> Content-Transfer-Encoding: X-yEnc
> Content-Disposition: attachment; filename="al_larsonbw026_stranger.jpg.ync"

But this is a completely different approach - it requires that the
software understands that there is a CTE that is unknown. Many
programs do not do this - and in any case, it's a half-way effort.

My suggestion _only_ tags that the message is binary and that it is an
yEnc binary. The software already knows how to decipher CTE: 8bit -
since that _is_ required by the standard.

>> Yes, we are entering the MIME world of handling for the article -
>> and in there the unknown article must be rendered as
>> application/octet-stream as by the standard - which is exactly what
>> we want.
> 
> I have learned meanwhile that some software does not follow this
> rule.  It still corrupts the message-body.

I don't wonder if you tried to have that message with an unknown
CTE. Are there some newsreaders that corrupt a simple
application/octet-stream message with CTE 8bit? I don't know, there
might be.

>> You seem to be thinking that the MIME requires that there is enough
>> information for the client to parse the message. It does not. To
>> simplify my proposal - it just tags the message as binary so
>> newsreaders won't show it as is to the user.
> 
> From my own experience some newsreaders are treating MIME messages
> completely different - especially when it comes to joining and
> saving to disk.

Does this mean your above proposal or just a simple
application/octet-stream message? If it's the former, I can understand
that - if it's the latter - well there's some mightily fucked up
software in the world again.

> The same newsreaders do save a message properly if they are are
> _not_ MIME, but simply text with a yEnc encoded body.

Well I can't deny this ofcourse since I don't have access to a wide
variety of software. I do, however, doubt that there is software that
fails to save a application/octet-stream message as-is - though there
might be.

> I did _realise_ what you are proposing - and my own tools have a
> hidden "checkbox" which creates yEnc posts with a MIME embedding.

But I am _not_ advocating MIME embedding - I'm only saying saying that
the content needs to be tagged as binary - which is quite a lot
simpler matter.

> If it would have worked properly, then I would have help up my
> proposals for MIME - and the pages which describe it would still be
> on my website. But there are _additional_ problems - at least with
> the newsreaders I am running. So I assume that for more MIME-clients
> will have problems with this method.

Making a new CTE from scratch is obviously bound to break a lot of
clients that cannot handle it. If it is of an unknown CTE, the client
does not know how to decode the message at all - and hence should not
even allow for the posibility of saving it. Unless ofcourse it is
saving the entire message with all headers without tranlating
_anything_.

Saying that the content is application/octet-stream or
application/x-yenc does not do that - they should behave exactly the
same and only tag the message as binary. The body of the message is
not touched in the least.

> This is the reason why I did not want to continue that way:
> Creating a MIME embedding which causes even more problem
> than 'raw' yEncoded messages would be a bad idea.

Yes I agree - but I have yet to see any problems caused by the simple
tagging method I'm proposing. I'm not ofcourse claiming that they
cannot exist.

> Just my own experiences - feel free to make your own tests.

I do have quite a limited possibility of doing testing like this since
I only run Linux.

>> Well what I'm here trying to do is to keep exact compatibility with
>> the current yEnc version - but still make the messages compatible
>> with MIME - without requiring either.
> 
> I dont know if you have read my own "MIME-embedding" proposal
> which was earlier on www.yenc.org. It is hidden, but still there:
> 
> http://www.winews.net/yenc/ymime.txt

Well now I have - and I must say that it's good that that didn't get
started. It breaks quite a lot of what MIME is trying to do.

>> And I haven't seen anybody yet present good reasons why not do this.
> 
> I dont remember all details. But my own proposal was discussed in
> the comp.mail.mime group (and here). 
> 
> My latest investigations with an honoured MIME expert did only
> add discouragement to the topic :-(

Your own proposal is _very_ different from mine.

I cannot say that I am a MIME expert, but I have done a _lot_ of stuff
with it - in news, mail and HTTP, among others. Don't take this as a
discouragement but it's quite obvious that the suggestion doesn't
really work how you explain there. For example the CTE you specify
makes it _impossible_ to save that part of the message - not so that
it makes it possible to be saved unprocessed. And I do not know how
robust the yEnc decoders are, but I'd rather not touch the body at all
when trying to be compatible with old decoding software - and
especially if the body contains MIME multiparts, it might be hard or
impossible to get through to the actual body of the message. On the
other hand - just about every mail program allows you to specify a
program to handle a certain content-type, which would allow what you
try to achieve.

I don't think you should apply what you have found out by your own
proposal directly to mine - since they are quite different.

-- Naked
Technical Details
Message-ID: <87n0x1agwi.fsf@iki.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.media.kyoto-u.ac.jp!news.cc.tut.fi!uutiset.saunalahti.fi!localhost
References: <87k7s9d7tr.fsf@iki.fi> <51039.j32205@archiver.winews.net> <87wuw8bb8f.fsf@iki.fi> <35458.k32201@archiver.winews.net> <87zo139hwp.fsf@iki.fi> <15158.l32205@archiver.winews.net>

Show Full Headers
Complete Article Headers
Message-ID: <87n0x1agwi.fsf@iki.fi>
Subject: Re: [yEnc] A small MIME fix
Date: Thu, 21 Mar 2002 20:56:45 +0200
From: Nuutti Kotivuori <naked@iki.fi>
References: <87k7s9d7tr.fsf@iki.fi> <51039.j32205@archiver.winews.net> <87wuw8bb8f.fsf@iki.fi> <35458.k32201@archiver.winews.net> <87zo139hwp.fsf@iki.fi> <15158.l32205@archiver.winews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.media.kyoto-u.ac.jp!news.cc.tut.fi!uutiset.saunalahti.fi!localhost
Newsgroups: news.software.nntp
Organization: SAUNALAHDEN asiakas
Lines: 128
NNTP-Posting-Host: cs183115.pp.htv.fi
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: tron.sci.fi 1016738382 22662 213.243.183.115 (21 Mar 2002 19:19:42 GMT)
X-Complaints-To: newsmaster@saunalahti.fi
NNTP-Posting-Date: 21 Mar 2002 19:19:42 GMT
User-Agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i386-debian-linux)
Cancel-Lock: sha1:GLcMgCJMhFQ6VIy3IKJF09pDzro=