🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55515

Re: Yenc - implementation issues

#55515
From: The Archiver
Date: Thu, 06 Dec 2001 17:55
92 lines
4656 bytes
alexande@tx.technion.ac.il (Alex Birj) wrote:

>1. We cannot conclude how many lines a file contains without scanning
>the file first, so we cannot calculate the number of parts given the
>file size like it can be done for uue or base64 since the latter
>encodings have fixed number of characters per line and for yenc the
>number is variable.

I would recommend to encode a fixed portion of source bytes
into one message. Perhaps 250.000 or 400.000 bytes.
The length of the message will vary (in lines) but the "Lines"
header is not very important (says USEFOR).

>      It can be easily fixed by placing fixed number of characters
>from original file per line. In the worst case the actual line size
>will be double, e.g. =@=@=@...., but still with 256 characters per
>line it will result length 512+2 that is acceptable and doesn't have
>any importance.

Unfortunately the amount of bytes per line is actually fixed
and defined within the line= parameter of the =ybegin header.
This was introduced to find corrupt lines easier.
And at least two decoders are already using this fixed size
for error-detection.

However it would be possible to define  "line=" as the amount
of _source_ characters and have a similar effect.

Any more opinions how important a constant amount of lines
would be ?   This does affect yEncoding also if embedded 
into MIME.

>   2. It is impossible to place several binaries in one file. 
>The limitation seems to be artificial. 

It is not mentioned in the draft but it should be possible
to add multiple =ybegin/=yend blocks into one message.

Traditionally this confuses users _strongly_.
I saw newbie posts with 150 binary pictures in a 60 
parts splitted binary. 
Or five binaries in one message - and no filenames at all.

>We can update the syntax of the
>subject line, but I would consider removing such syntax alltogether
>and to require decoder to work properly also with only the "(x/n)"
>indication of a multipart message with possible omitting "(1/1)". 

My own decoder works this way - it would detect all attachments.
(Even a big mix of all possible encodings).

But there is no good solution for indicating the content of such
messages in the subject line.

And I must admit that I have no idea how to solve this issue.
The yEnc draft has only recommendations for the subject line.
The author(s) agreed that it was never possible to have 
(and enforce) subject line rules. So we did not try.

>It
>might be strongly recommended to add "yenc" in the subject line since
>some people won't download such files since e.g. their newsgreader
>doesn't support them and they don't want to decode them manually, the
>same with recommendation to place other info in the subject line, 

Yes.

>but
>I don't understand why we should impose something when it may work
>without it (like in uue - noone complaining).

As yEnc would also permit to send a full HTML page including all pictures
(modern world is coming ;-)
in one message it might be a good idea to extend the yEnc draft by
'multi-attachments'. But I'm really afraid about the confusion (which is
almost used by spammers) and would love to see ideas about
the subject.

>      There are two undisputably useful issues that are addressed -
>crc check and compact endcoding, probably care should be taken in
>adding more restrictions.

I personally wanted to have a compact and secure encoding.
The subject line is just a recommendation.
And the 'multi-attachment' could be added.

But there might be also other voices ! ??

-- 
Juergen, [The Archiver]

Technical Details
Message-ID: <4955i.6c120h@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!news-xfer.siscom.net!not-for-mail
References: <aaa0567.0112060817.1da183d4@posting.google.com>

Show Full Headers
Complete Article Headers
Message-ID: <4955i.6c120h@archiver.winews.net>
Subject: Re: Yenc - implementation issues
Date: Thu, 06 Dec 2001 17:55:49 +0000
From: archiver@i3w.com (The Archiver)
References: <aaa0567.0112060817.1da183d4@posting.google.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!news-xfer.siscom.net!not-for-mail
Newsgroups: news.software.nntp
X-Newsreader: MyNews
Lines: 91
Organization: Newshosting.com - Highest quality at a great price! www.newshosting.com
NNTP-Posting-Date: 06 Dec 2001 18:49:16 GMT
NNTP-Posting-Host: c9937c0b.news.newshosting.com
X-Trace: DXC=Dna>bEFBOB2RlIR<RDgXo2cWAoU0VUld2S3bM27mQ[Q=V^W432Nc\5=3nWncBSY5k;V3bPO_72T?:hn:o9KX:jc?
X-Complaints-To: abuse@newshosting.com