Thread View: news.software.readers
13 messages
13 total messages
Started by blah
Sat, 17 Feb 2007 07:12
Xnews and filesizes
Author: blah
Date: Sat, 17 Feb 2007 07:12
Date: Sat, 17 Feb 2007 07:12
28 lines
2521 bytes
2521 bytes
Xnews and filesizes When you hover over an article's line count in Xnews a popup box displays the file's (server-side) size in bytes. Does anyone know how to retrieve these popup size values? Eg., I want the sizes for say, a few hundred files. The fact that they will 'popup' individually means that Xnews has this information somewhere but how do I access it? It must be in the .hdr files but in some form of proprietary code (I've had a look). I can export the headers of interest to an nzb and read that wherein the byte sizes are readable but there will be a size for each part of a multi-part binary and I want the total. Currently I export to nzb, open that in NewsLeecher which has an article size column (albeit rounded to KB's) then I capture that column with Hypersnap v.6 (a screen capture program with scrolling option, window or region, and with text capture in v.6), save it as a txt file then drag that into MS Excel and batch multiply first by 1024 and then by a reduction % depending on whether the files are posted in UUE or yEnc (a secret proprietary % calculated by Myself. I could be tempted to release the source if you don't own a calculator). The result is pretty close to actual file sizes and good enough to work with but For God's Sake! is there a way I can get the sizes (as displayed in the 'popups') en masse from Xnews? Or another newsreader that can export this information (and ideally has nzb import ability as I don't want to pull headers twice)? Or any simpler way to get a list of article sizes than the way I am doing it? Please help me Dear Doris.
Re: Xnews and filesizes
Author: Murray Peterson
Date: Sat, 17 Feb 2007 07:34
Date: Sat, 17 Feb 2007 07:34
25 lines
2082 bytes
2082 bytes
blah <blowfly@spamsnotham.invalid> wrote in news:45d6aacd$0$18684$a82e6bb9@orc.meganetnews.com: > Does anyone know how to retrieve these popup size values? Eg., I want > the sizes for say, a few hundred files. The fact that they will > 'popup' individually means that Xnews has this information somewhere > but how do I access it? It must be in the .hdr files but in some form > of proprietary code (I've had a look). I can export the headers of > interest to an nzb and read that wherein the byte sizes are readable > but there will be a size for each part of a multi-part binary and I > want the total. > Standard headers only provide the number of lines per post. Any estimate of the article size in bytes is just that -- an estimate. The size of a binary file can be roughly calculated, but it depends on the encoding method (yenc, uuencode, radix-64). The popups are a result of Xnews performing a calculation, not reading some hidden information from a header. -- Murray Peterson Email: murray "dot" spam3trap "at" shaw "dot" ca URL: http://members.shaw.ca/murraypeterson/
Re: Xnews and filesizes
Author: blah
Date: Sat, 17 Feb 2007 09:27
Date: Sat, 17 Feb 2007 09:27
34 lines
2587 bytes
2587 bytes
Murray Peterson <mwp@home.com.invalid> wrote in news:Xns98DA5D3A81F4farkle@64.59.135.159: > blah <blowfly@spamsnotham.invalid> wrote in > news:45d6aacd$0$18684$a82e6bb9@orc.meganetnews.com: > >> Does anyone know how to retrieve these popup size values? Eg., I want >> the sizes for say, a few hundred files. The fact that they will >> 'popup' individually means that Xnews has this information somewhere >> but how do I access it? It must be in the .hdr files but in some form >> of proprietary code (I've had a look). I can export the headers of >> interest to an nzb and read that wherein the byte sizes are readable >> but there will be a size for each part of a multi-part binary and I >> want the total. >> > > Standard headers only provide the number of lines per post. Any > estimate of the article size in bytes is just that -- an estimate. > The size of a binary file can be roughly calculated, but it depends on > the encoding method (yenc, uuencode, radix-64). > > The popups are a result of Xnews performing a calculation, not reading > some hidden information from a header. > Thanks for the reply. So Xnews performs these calculations instantaneously based on the line count using a fixed value (in bytes) for a line (maybe different for UUE and yEnc?). Therefore I could simply capture the 'Lines' column from Xnews and use the same value in my calculations. It would knock out one program on my path to glory (Newsleecher) and perhaps be more accurate (NL rounds to KB). Now I need to find the size value (in bytes) for a single line. Two values if UUE & yEnc are different. I've been a'Googling but no luck as yet.
Re: Xnews and filesizes
Author: blah
Date: Sat, 17 Feb 2007 11:58
Date: Sat, 17 Feb 2007 11:58
30 lines
2016 bytes
2016 bytes
blah <blowfly@spamsnotham.invalid> wrote in news:45d6ca6b$0$18699$a82e6bb9@orc.meganetnews.com: > Murray Peterson <mwp@home.com.invalid> wrote in > news:Xns98DA5D3A81F4farkle@64.59.135.159: > >> blah <blowfly@spamsnotham.invalid> wrote in >> news:45d6aacd$0$18684$a82e6bb9@orc.meganetnews.com: >> >>> Does anyone know how to retrieve these popup size values? <snip> >> Standard headers only provide the number of lines per post. >> The popups are a result of Xnews performing a calculation, <snip> > Now I need to find the size value (in bytes) for a single line. Two > values if UUE & yEnc are different. <snip> Forget that last post. From random (bin) samples I get: yEnc: 129.24 bytes/line UUE: 62.34 bytes/line but there'd be too much error multiplying those values by lines. I'm better off doing what I was doing. Unless someone knows of a newsreader that displays article size in bytes (not KB's), in a column and can import nzb's?
Re: Xnews and filesizes
Author: DanS
Date: Sat, 17 Feb 2007 14:25
Date: Sat, 17 Feb 2007 14:25
52 lines
2837 bytes
2837 bytes
blah <blowfly@spamsnotham.invalid> wrote in news:45d6ede6$0$18762$a82e6bb9@orc.meganetnews.com: > blah <blowfly@spamsnotham.invalid> wrote in > news:45d6ca6b$0$18699$a82e6bb9@orc.meganetnews.com: > >> Murray Peterson <mwp@home.com.invalid> wrote in >> news:Xns98DA5D3A81F4farkle@64.59.135.159: >> >>> blah <blowfly@spamsnotham.invalid> wrote in >>> news:45d6aacd$0$18684$a82e6bb9@orc.meganetnews.com: >>> >>>> Does anyone know how to retrieve these popup size values? > > <snip> > >>> Standard headers only provide the number of lines per post. >>> The popups are a result of Xnews performing a calculation, > > <snip> > >> Now I need to find the size value (in bytes) for a single line. Two >> values if UUE & yEnc are different. > > <snip> > > Forget that last post. From random (bin) samples I get: > yEnc: 129.24 bytes/line > UUE: 62.34 bytes/line > but there'd be too much error multiplying those values by lines. I'm > better off doing what I was doing. Unless someone knows of a > newsreader that displays article size in bytes (not KB's), in a column > and can import nzb's? > > I'd say most other newsreaders for binary content do. >From the RFC2980 spec..... (This is the description of the datastream resulting from an XOVER command.) 'Each line of output will be formatted with the article number, followed by each of the headers in the overview database or the article itself (when the data is not available in the overview database) for that article separated by a tab character. The sequence of fields must be in this order: subject, author, date, message-id, references, byte count, and line count.' So the byte count of the individual message is included in the XOVER data. Why this is not incorporated into XNews, I don't know.
Re: Xnews and filesizes
Author: SINNER
Date: Sat, 17 Feb 2007 15:05
Date: Sat, 17 Feb 2007 15:05
93 lines
4932 bytes
4932 bytes
* DanS wrote in news.software.readers: > blah <blowfly@spamsnotham.invalid> wrote in > news:45d6ede6$0$18762$a82e6bb9@orc.meganetnews.com: [...] >> Forget that last post. From random (bin) samples I get: >> yEnc: 129.24 bytes/line >> UUE: 62.34 bytes/line >> but there'd be too much error multiplying those values by lines. I'm >> better off doing what I was doing. Unless someone knows of a >> newsreader that displays article size in bytes (not KB's), in a column >> and can import nzb's? > I'd say most other newsreaders for binary content do. > From the RFC2980 spec..... > (This is the description of the datastream resulting from an XOVER > command.) > 'Each line of output will be formatted with the article number, > followed by each of the headers in the overview database or the > article itself (when the data is not available in the overview > database) for that article separated by a tab character. The > sequence of fields must be in this order: subject, author, date, > message-id, references, byte count, and line count.' > So the byte count of the individual message is included in the XOVER > data. Why this is not incorporated into XNews, I don't know. While it is available in the XOVER, it seems it is not typically stored with the headers. It seems that Bytes is calculated on the fly by the server as well. [08:48 AM][J:0][sinner@~]$ telnet 127.0.0.1 nntp Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 200 Leafnode NNTP daemon, version 2.0.0.alpha20060831a at news.gates-of-hell.com list overview.fmt 215 information follows Subject: From: Date: Message-ID: References: Bytes: Lines: Xref:full .. group news.software.readers 211 5001 2 5009 news.software.readers group selected xover 5007 224 Overview information for postings 5007-5007: 5007 Re: Xnews and filesizes DanS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a.n.e.t> S at, 17 Feb 2007 15:25:12 +0100 (CET) <Xns98DA6081E9C5Fthisnthatadelphianet@19 4.177.96.78> <45d6aacd$0$18684$a82e6bb9@orc.meganetnews.com> <Xns98DA5D3A81F4 farkle@64.59.135.159> <45d6ca6b$0$18699$a82e6bb9@orc.meganetnews.com> <45d6ede6$ 0$18762$a82e6bb9@orc.meganetnews.com> 2675 52 Xref: gates-of-hell.com news.software.readers:5007 Notice that bytes is listed as 2675, however when I grab the headers of the article: root@gates-of-hell:/var/spool/news/news/software/readers# head -n15 5007 Path: news.easynews.com!en236!core-easynews!news-in-01.newsfeed.easynews.com!easynews.com!easynews!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!aioe.org!not-for-mail From: DanS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a.n.e.t> Newsgroups: news.software.readers Subject: Re: Xnews and filesizes Date: Sat, 17 Feb 2007 15:25:12 +0100 (CET) Organization: Disorganized Lines: 52 Message-ID: <Xns98DA6081E9C5Fthisnthatadelphianet@194.177.96.78> References: <45d6aacd$0$18684$a82e6bb9@orc.meganetnews.com> <Xns98DA5D3A81F4farkle@64.59.135.159> <45d6ca6b$0$18699$a82e6bb9@orc.meganetnews.com> <45d6ede6$0$18762$a82e6bb9@orc.meganetnews.com> NNTP-Posting-Host: dHD3Dk23LpHfCgCifR2Ikw.user.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: Xnews/2006.08.24 Xref: gates-of-hell.com news.software.readers:5007 blah <blowfly@spamsnotham.invalid> wrote in No Bytes displayed. -- David When you were born, a big chance was taken for you.
Re: Xnews and filesizes
Author: DanS
Date: Sat, 17 Feb 2007 15:38
Date: Sat, 17 Feb 2007 15:38
11 lines
1577 bytes
1577 bytes
SINNER <99nesorjd@gates_of_hell.invalid> wrote in news:i4ija4xav5.ln2@news.gates-of-hell.com: > While it is available in the XOVER, it seems it is not typically > stored with the headers. It seems that Bytes is calculated on the fly > by the server as well. > Right, it was apparently a programming decision by Luu to not include the byte count. I don't know if I'd say it's 'not typically' stored with the headers. I would say that in XNews it is not stored nor processed.
Re: Xnews and filesizes
Author: SINNER
Date: Sat, 17 Feb 2007 16:09
Date: Sat, 17 Feb 2007 16:09
26 lines
2458 bytes
2458 bytes
* DanS wrote in news.software.readers: > SINNER <99nesorjd@gates_of_hell.invalid> wrote in > news:i4ija4xav5.ln2@news.gates-of-hell.com: >> While it is available in the XOVER, it seems it is not typically >> stored with the headers. It seems that Bytes is calculated on the fly >> by the server as well. > Right, it was apparently a programming decision by Luu to not include the > byte count. I don't know if I'd say it's 'not typically' stored with the > headers. Can you tell me a client that DOES store a header called Bytes: slrn, tin, pan, pine, Xnews, knode and sylpheed-claws are confirmed to not store it even though it is available in the XOVER from the server being used. Looks more like its a programming decision by some client authors to include, not to exclude it. -- David A mother takes twenty years to make a man of her boy, and another woman makes a fool of him in twenty minutes. -- Frost
Re: Xnews and filesizes
Author: Frank Slootweg
Date: Sat, 17 Feb 2007 16:48
Date: Sat, 17 Feb 2007 16:48
45 lines
2948 bytes
2948 bytes
SINNER <99nesorjd@gates_of_hell.invalid> wrote: [deleted] > Can you tell me a client that DOES store a header called Bytes: AFAIK, there *is* no *header* called "Bytes:". It is a *field*, or whatever you want to call it, but it is no header. For example the Usefor drafts do not mention "Bytes:", but *do* mention "Lines:" (obsolete) and 'pseudo' headers like "Xref:". See <http://www.ietf.org/internet-drafts/draft-ietf-usefor-usefor-12.txt>. And the NNTP RFC (3977) [1] calls "bytes" and "lines" "metadata item"s. I think that section 8.4.2. of RFC 3977 explains it very well (especially note the last line): > 8.4.2. Description > > See Section 7.6.1 for general requirements of the LIST command. > > The LIST OVERVIEW.FMT command returns a description of the fields in > the database for which it is consistent (as described above). The > information is returned as a multi-line data block following the 215 > response code. The information contains one line per field in the > order in which they are returned by the OVER command; the first 7 > lines MUST (except for the case of letters) be exactly as follows: > > Subject: > From: > Date: > Message-ID: > References: > :bytes > :lines > > For compatibility with existing implementations, the last two lines > MAY instead be: > > Bytes: > Lines: > > even though they refer to metadata, not headers. [1] <http://www.ietf.org/rfc/rfc3977.txt?number=3977>
Re: Xnews and filesizes
Author: »Q«
Date: Sat, 17 Feb 2007 17:20
Date: Sat, 17 Feb 2007 17:20
24 lines
2277 bytes
2277 bytes
In <news:Xns98DA6CF4F64ADthisnthatadelphianet@194.177.96.78>, DanS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a.n.e.t> wrote: > SINNER <99nesorjd@gates_of_hell.invalid> wrote in > news:i4ija4xav5.ln2@news.gates-of-hell.com: > > > While it is available in the XOVER, it seems it is not typically > > stored with the headers. It seems that Bytes is calculated on the > > fly by the server as well. > > > > Right, it was apparently a programming decision by Luu to not include > the byte count. I don't know if I'd say it's 'not typically' stored > with the headers. I would say that in XNews it is not stored nor > processed. It is processed, I think. Early in the thread, Murray said that Xnews calculates the size based on number of lines, but I believe the pseudo-header Bytes is used for the display when you hover over the lines column and for scoring. I don think it's not stored, being in RAM only while the XOVER info is. -- »Q«
Re: Xnews and filesizes
Author: Murray Peterson
Date: Sat, 17 Feb 2007 17:48
Date: Sat, 17 Feb 2007 17:48
15 lines
1925 bytes
1925 bytes
»Q« <boxcars@gmx.net> wrote in news:93qja4-b9h.ln1@goldry.remarqs.net: > It is processed, I think. Early in the thread, Murray said that Xnews > calculates the size based on number of lines, but I believe the > pseudo-header Bytes is used for the display when you hover over the > lines column and for scoring. I don think it's not stored, being in > RAM only while the XOVER info is. I believe that my statement(s) were incorrect (and youras are correct). Sorry about that. -- Murray Peterson Email: murray "dot" spam3trap "at" shaw "dot" ca URL: http://members.shaw.ca/murraypeterson/
Re: Xnews and filesizes
Author: DanS
Date: Sat, 17 Feb 2007 21:59
Date: Sat, 17 Feb 2007 21:59
34 lines
2530 bytes
2530 bytes
SINNER <99nesorjd@gates_of_hell.invalid> wrote in news:dslja4xuf7.ln2@news.gates-of-hell.com: > * DanS wrote in news.software.readers: >> SINNER <99nesorjd@gates_of_hell.invalid> wrote in >> news:i4ija4xav5.ln2@news.gates-of-hell.com: > >>> While it is available in the XOVER, it seems it is not typically >>> stored with the headers. It seems that Bytes is calculated on the >>> fly by the server as well. > > >> Right, it was apparently a programming decision by Luu to not include >> the byte count. I don't know if I'd say it's 'not typically' stored >> with the headers. > > Can you tell me a client that DOES store a header called Bytes: > > slrn, tin, pan, pine, Xnews, knode and sylpheed-claws are confirmed to > not store it even though it is available in the XOVER from the server > being used. > > Looks more like its a programming decision by some client authors to > include, not to exclude it. Most binary d/l'rs I've used show file size. Newsleecher, ZeoNews, NewsGrabber, and others. As other's have said, it is not a header. I believe all of the clients you mention above are mainly for text use. It IS a programming decision. Why a programmer wouldn't stored and process when it is in the XOVER data I can't answer. Possibly for a text-intended client, that isn't important.
Re: Xnews and filesizes
Author: blah
Date: Sun, 18 Feb 2007 23:36
Date: Sun, 18 Feb 2007 23:36
120 lines
6249 bytes
6249 bytes
DanS <t.h.i.s.n.t.h.a.t@a.d.e.l.p.h.i.a.n.e.t> wrote in news:Xns98DA6081E9C5Fthisnthatadelphianet@194.177.96.78: > blah <blowfly@spamsnotham.invalid> wrote in > news:45d6ede6$0$18762$a82e6bb9@orc.meganetnews.com: > >> blah <blowfly@spamsnotham.invalid> wrote in >> news:45d6ca6b$0$18699$a82e6bb9@orc.meganetnews.com: >> >>> Murray Peterson <mwp@home.com.invalid> wrote in >>> news:Xns98DA5D3A81F4farkle@64.59.135.159: >>> >>>> blah <blowfly@spamsnotham.invalid> wrote in >>>> news:45d6aacd$0$18684$a82e6bb9@orc.meganetnews.com: >>>> >>>>> Does anyone know how to retrieve these popup size values? >> >> <snip> >> >>>> Standard headers only provide the number of lines per post. >>>> The popups are a result of Xnews performing a calculation, >> >> <snip> >> >>> Now I need to find the size value (in bytes) for a single line. Two >>> values if UUE & yEnc are different. >> >> <snip> >> >> Forget that last post. From random (bin) samples I get: >> yEnc: 129.24 bytes/line >> UUE: 62.34 bytes/line >> but there'd be too much error multiplying those values by lines. I'm >> better off doing what I was doing. Unless someone knows of a >> newsreader that displays article size in bytes (not KB's), in a column >> and can import nzb's? >> >> > > I'd say most other newsreaders for binary content do. Mesnews, BNR2, NewsBin, NewsLeecher all have a size column in KB's. (which is no great concern, it can only be out by as much as 512 bytes max and I'm not hoping to get exact actual filesize, just a close enough figure to say, 'yes, that's the same duck'). Agent (v2) has a line count only. Haven't tried any others yet (yawn). > > From the RFC2980 spec..... > > (This is the description of the datastream resulting from an XOVER > command.) > > 'Each line of output will be formatted with the article number, > followed by each of the headers in the overview database or the > article itself (when the data is not available in the overview > database) for that article separated by a tab character. The > sequence of fields must be in this order: subject, author, date, > message-id, references, byte count, and line count.' > > So the byte count of the individual message is included in the XOVER > data. Why this is not incorporated into XNews, I don't know. > Thanks for the specs. Therefore the popup size in Xnews _is_ accurate for the encoded serverside file. It's indispensable information. A fixed column of figures as well or instead would be so much easier to work with. (...hours later)..after scrutinising TFM and the many references to ini file sections and entries which only exist as figments, I extracted some keywords and searched Googula's Groupies and found a message from Tech Zero dated 20 June 2004: http://groups.google.com.au/group/news.software.readers/browse_thread/thread/a5368659a1 85b320/eeb14e1c4a2af20b?lnk=st&q=&rnum=5&hl=en#eeb14e1c4a2af20b Armed with this info I was able to go back to the manual (-> CopyHeadersTemplate ), hear the angels singing and create some correct entries in Xnews.ini At the moment I've added this section header and entry to Xnews.ini: [Popups] ArticleList=acaCopyHeaders and this entry under [Misc]: CopyHeadersTemplate=%s,%B%r Now if I right click on a header or a highlighted bunch I can 'Copy Header' and paste to notepad and save as a .csv file (comma separated values) which I can drag into Excel and have it displayed in two columns and do some quick maths. %s,%B%r translates to subjectline(%s)comma(,)sizeinbytes(%B)endofline(%r) for each header (there's a variety of these commands in the manual). (Mr. Tran even has me reading this now: http://virtual.park.uga.edu/humcomp/perl/regex2a.html (I think he's running a computer class by proxy) Two big problems now: 1. %s gives me the whole waffle as well as the filename. How to clean it up? Study regex2a.html? Enrol in Comp123? 2. It doesn't work for multipart binaries. ie., you have to expand all multiparts, highlight the lot but then you get individual values (sizes) for each part. Right clicking on a threaded multipart (unexpanded) and 'Copy Header' only copies the info for the first part and not the sum of all (Damn & Blast!). Further down in this thread >>Q<< surmises that the file size is not stored but only in RAM for as long as the XOVER info is. I assume he means after freshly pulling headers. However, I can disconnect from the 'net, open a Queue that's not been open for a month (whoops, forgot about those) and read the popups (sizes). So Xnews _is_ storing file size but it must be one of those short encrypted(?) strings of gibberish in the .hdr files(?). If not storing then it's as Murray Peterson says above. Problem 1 above should be solvable with some regex. A lot of binary posters enclose the filename in parentheses but certainly not all. Problem 2 - if can't solve this one then whole exercise almost useless except for single part bins. Anyway, I'm taking recess before it's lunch. blah, cough, yawn, stretch.
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