🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Alex Birj Thu, 06 Dec 2001 16:17
Yenc - implementation issues
#55512
Author: Alex Birj
Date: Thu, 06 Dec 2001 16:17
31 lines
2575 bytes
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.
      Adding the rest to the last part considering 128 bytes per line
may not be a good solution for large posts (e.g. 1% of 650MB is 6.5MB
or 50000+lines);
If we want to repost 1st part of 650MB image we don't want necessarily
to rescan it first.
      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.

   2. It is impossible to place several binaries in one file. The
limitation seems to be artificial. 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)". 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, but
I don't understand why we should impose something when it may work
without it (like in uue - noone complaining).
      There are two undisputably useful issues that are addressed -
crc check and compact endcoding, probably care should be taken in
adding more restrictions.
Re: Yenc - implementation issues
#55515
Author: 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]

Re: Yenc - implementation issues
#55535
Author: Alex Birj
Date: Fri, 07 Dec 2001 05:39
5 lines
1141 bytes
If we encode a fixed portion per part - the last line of some 
parts might be incomplete or otherwise we face the same problem, 
now I noticed in the example it is the case, so it appears to be 
acceptable workaround.
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