🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #203636

Re: [Xnews] Lines = ? [size] ?

#203636
From: Rikishi 42
Date: Sun, 12 Aug 2007 17:27
40 lines
2752 bytes
On 2007-08-12, -Lost <maventheextrawords@techie.com> wrote:

> OK, I'm not too swift so can someone tell me how *lines* equate to the size 
> of a file?  For example, if I'm getting a binary attachment that is 100 
> lines long.  I know only a few things about this.
A bin attachment of 100 lines is very, very small.

> 1.  It's 50 lines.
> 2.  Assuming the lines wraps at 72 characters or so then that makes it 
> 50x72.
I've looked at a few examples. Assume 60, in mime/uuencoded messages. There
is another format, but I doubt the number of lines makes much sense at all
for those cases.

> 3.  50x72 (assuming that isn't already a screwed up theory) is 3,600.
> 4.  3,600 characters equate to 3.51 Kilobytes.  And that's assuming ASCII.  
> I've no clue if Unicode would make a large difference.
The binary part would not contain any unicode.

> 5.  I'm not saving the characters of each binary attachment into a text 
> file just so I can come up with these numbers.
> So... is there a reliable method of knowing how big a file is in Xnews?  
> Based on line count or otherwise?
Not exactly, no.

You also have to account for the mime -> binary coding/decoding. When a
binary file is coded into ASCII, the result is a larger file. I've allways
used 1.6 as a general factor. Mind you, the content of the original file is
going to influence that factor.

But is general, bin -> ASCII is x1.6,
so the reverse is /1.6. 

Your 3.51 KB would be reduced to 2.2 KB at decoding.


-- 
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
Technical Details
Message-ID: <pgs3p4-48q.ln1@whisper.very.softly>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.mixmin.net!border-1.ams.xsnews.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!68.142.88.75.MISMATCH!hwmnpeer01.ams!news.highwinds-media.com!kramikske.telenet-ops.be!nntp.telenet.be!blueberry.telenet-ops.be.POSTED!b6153e94!not-for-mail
References: <Xns998A5C1616E72lostthreads@216.196.97.136>

Show Full Headers
Complete Article Headers
Message-ID: <pgs3p4-48q.ln1@whisper.very.softly>
Subject: Re: [Xnews] Lines = ? [size] ?
Date: Sun, 12 Aug 2007 19:27:21 +0200
From: Rikishi 42 <fsck_spam@telenet.be>
References: <Xns998A5C1616E72lostthreads@216.196.97.136>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.mixmin.net!border-1.ams.xsnews.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!68.142.88.75.MISMATCH!hwmnpeer01.ams!news.highwinds-media.com!kramikske.telenet-ops.be!nntp.telenet.be!blueberry.telenet-ops.be.POSTED!b6153e94!not-for-mail
Newsgroups: news.software.readers
User-Agent: slrn/0.9.8.0 (Linux)
Lines: 40
NNTP-Posting-Host: 84.197.232.46
X-Trace: blueberry.telenet-ops.be 1186939801 84.197.232.46 (Sun,
NNTP-Posting-Date: Sun, 12 Aug 2007 19:30:01 CEST