🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #85833

Re: xnews filesize

#85833
From: Robert Amesz
Date: Sun, 21 Oct 2001 05:54
37 lines
2950 bytes
Murray Peterson wrote:

> curt@kcwc.com (Curt Welch) wrote in 
> news:20011018211534.558$Tm@newsreader.com:
> 
>> Where do you guys get this stuff?  The byte count is both real and
>> accurate.  It's the lines value that's normally questionable. 
> 
> From your own post:
> "But the article size in bytes is NOT an accurate measure of the
> size of the file which is encoded in the article.  Trying to
> estimate the size of the attached file from the byte count is
> probably even less accurate than estimating it from the line
> count." 
> 
> This doesn't exactly make the byte count any more useful than line
> count.  The original poster was asking for filesize, not number of
> bytes in the article body.  Incorrect information is not something
> a "good" newsreader should attempt to display.

I must admit I forgot about the byte count. But judging the final file 
size from that isn't a 100% accurate either, because you have to take 
into consideration the overhead per line: without that, files would 
always be encoded to 125% of their actual size, while in actual fact in 
my previous calculation the examples yielded 137% and 142%.

Combining both line count and byte count might give more accurate 
estimates. If you take the average line length and round it up to the 
nearest integer you'll _probably_ have the correct length of the 
encoded lines. Even so, because UUENCODE has one byte extra overhead 
per line compared to MIME,  you can still only approximate the final 
filesize to within roughly 2%, even if you estimate the line length and 
the fixed overhead with absolute accuracy.


Robert Amesz
Technical Details
Message-ID: <Xns91413EA712BCArcamesz@amesz.demon.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjcppf01.usenetserver.com!usenetserver.com!sn-xit-04!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <Xns913D53184D01Dtomaolde@194.231.40.11> <Xns913D605545611farkle@24.71.223.45> <Xns913E6D392D6FDtomaolde@194.231.40.11> <Xns913F8709C591rcamesz@amesz.demon.nl> <20011018211534.558$Tm@newsreader.com> <Xns913ECAF01FC63farkle@24.71.223.45>

Show Full Headers
Complete Article Headers
Message-ID: <Xns91413EA712BCArcamesz@amesz.demon.nl>
Subject: Re: xnews filesize
Date: Sun, 21 Oct 2001 05:54:10 -0000
From: Robert Amesz <reqhye72zux@mailexpire.com>
References: <Xns913D53184D01Dtomaolde@194.231.40.11> <Xns913D605545611farkle@24.71.223.45> <Xns913E6D392D6FDtomaolde@194.231.40.11> <Xns913F8709C591rcamesz@amesz.demon.nl> <20011018211534.558$Tm@newsreader.com> <Xns913ECAF01FC63farkle@24.71.223.45>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjcppf01.usenetserver.com!usenetserver.com!sn-xit-04!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: Posted via Supernews, http://www.supernews.com
User-Agent: Xnews/4.06.22 Hamster/1.3.22.104
X-Face: i/!"w>!GV8UL{^20`L2OEvvFz(T"{bFYn2<:u"5<4Blsl-isl(bTDMKVqWL?nk-VY7[[);j =yB|s]|c3nRG4c7^1#+/(D)v4ToNC;PoE=\7baN'i75%+2NhzndU~qJUTI*-v[R"l)Q$GOX3o(-#7C iY6a`%._v`G8cG`!/3,mt?pkyvjv3f}\-mZiNnXJ9EK~D>Qs(ckW8yam<<T!\Kf>`wtj3>eEAAV\
Reply-To: rcamesz@dds.nl
X-Complaints-To: newsabuse@supernews.com
Lines: 36