Article View: news.software.nntp
Article #55512Yenc - implementation issues
From: Alex Birj
Date: Thu, 06 Dec 2001 16:17
Date: Thu, 06 Dec 2001 16:17
31 lines
2575 bytes
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.
Technical Details
Message-ID:
<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!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <aaa0567.0112060817.1da183d4@posting.google.com> Subject: Yenc - implementation issues Date: Thu, 06 Dec 2001 16:17:19 +0000 From: alexande@tx.technion.ac.il (Alex Birj) 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!postnews1.google.com!not-for-mail Newsgroups: news.software.nntp Organization: http://groups.google.com/ Lines: 30 NNTP-Posting-Host: 202.163.203.160 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1007655439 10310 127.0.0.1 (6 Dec 2001 16:17:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 6 Dec 2001 16:17:19 GMT