🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #85744

Re: xnews filesize

#85744
From: Curt Welch
Date: Thu, 18 Oct 2001 21:30
73 lines
4775 bytes
tom <Raven> wrote:
> mwp@home.com.invalid (Murray Peterson) wrote in
> news:Xns913D605545611farkle@24.71.223.45:
>
> > tom <Raven> wrote in news:Xns913D53184D01Dtomaolde@194.231.40.11:
> >
> >> how can i see the filesize of attached binaries in xnews
> >
> > You can't.  The filesize depends on the encoding method used, and Xnews
> > doesn't know what method is used until you download the file.  The only
> > information available before downloading the file is the number of
> > lines.  For that matter, some postings show a completely incorrect line
> > count.

No, XOVER returns the number of bytes as well.  And it's an accurate and
true size of the article on the server.  Most news readers have the ability
to show you the bytes value.  OE will show that to you.  If Xnews can't
that's surprising to me.

The lines number returned by XOVER is normally just the value shown in the
Lines: header of the article, and that is quite offen wrong (though most
the time it's only wrong by a few lines.  My server (the NewsReader.Com
server) will show correct line counts (and byte coutns) for all articles.
It changes (or adds) the Lines: headers in the articles so what you see is
allways consistent with what's in the article you read from the server.

> > You can make a quick and dirty estimate just by looking at the number
> > of lines.  If uuencoding was used, with a line length of 50 characters
> > per line, then the file size will be roughly 45KB for every 1000 lines.

uuencoded lines have 61 characters plus the EOL marker, which for NNTP and
PCs will be 2 characters.  So 1000 lines becomes 63000 characters or 61KB
of article bytes.

But those characters are encoding only 45 characters of data from the
attached file.  So if you want to estimate the size of the attached file,
it is approximately 45000 bytes for each 1000 lines, or 43.9KB.  Your 45 KB
of resulting data for each 1000 lines is a good estimate to use.

The only other encoding used is MIME base64.  Line lenghts varry, but they
are not much longer than uuencoding.  80 character lines would encode
60 bytes per line resulting in around 60KB per 1000 lines.  But I think
the most standard length of base64 is around 64 charcters per line, which
would encode 48 data bytes per line which would be 48000 bytes or 46.8KB
per 1000 lines.  Which really isn't much different than your 45KB estimate.

So 45KB per 1000 lines is a good estimate for any type of encoding normally
used on Usenet.

> > If a different encoding method was used, or if the poster uuencoded
> > with fewer/more characters per line, then this will be wrong.

> but outlook express shows the filesize, why xnews dont?

I have no idea why xnews wouldn't give that as an option.  There's no way
to reason XOVER data and not get the byte count, so it's surprising that it
wouldn't bother to save the information and over it as an option for the
user.

Though I do understand that the line count is generally easier to deal with
than the size in bytes.  So if you were going to pick only one of the two,
lines is the better choice.

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.  The file size is about 30% smaller than
the article size.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20011018173047.513$fm@newsreader.com>
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!sunqbc.risq.qc.ca!nf3.bellglobal.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <Xns913D53184D01Dtomaolde@194.231.40.11> <Xns913D605545611farkle@24.71.223.45> <Xns913E6D392D6FDtomaolde@194.231.40.11>

Show Full Headers
Complete Article Headers
Message-ID: <20011018173047.513$fm@newsreader.com>
Subject: Re: xnews filesize
Date: Thu, 18 Oct 2001 21:30:47 +0000
From: curt@kcwc.com (Curt Welch)
References: <Xns913D53184D01Dtomaolde@194.231.40.11> <Xns913D605545611farkle@24.71.223.45> <Xns913E6D392D6FDtomaolde@194.231.40.11>
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!sunqbc.risq.qc.ca!nf3.bellglobal.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.readers
X-Trace: NewsReader.Com NkW+7o0E1kpLagMaDeVlrGLkwxpopolb./_w8_sE-shXrS
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 72