Article View: news.software.readers
Article #195742Re: Xnews and filesizes
From: 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.
Technical Details
Message-ID:
<45d8e303$0$18689$a82e6bb9@orc.meganetnews.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!nntpserver.com!zeus.nntpserver.com!10.1.1.41.MISMATCH!pfilter-v0.1!not-for-mailReferences:
<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> <Xns98DA6081E9C5Fthisnthatadelphianet@194.177.96.78>Show Full Headers
Complete Article Headers
Message-ID: <45d8e303$0$18689$a82e6bb9@orc.meganetnews.com> Subject: Re: Xnews and filesizes Date: Sun, 18 Feb 2007 23:36:39 +0000 From: blah <blowfly@spamsnotham.invalid> 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> <Xns98DA6081E9C5Fthisnthatadelphianet@194.177.96.78> 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!border2.nntp.dca.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!nntpserver.com!zeus.nntpserver.com!10.1.1.41.MISMATCH!pfilter-v0.1!not-for-mail Newsgroups: news.software.readers Organization: Mrs. Maggot's Factory User-Agent: Xnews/2006.06.28 X-No-Archive: yes Lines: 120 NNTP-Posting-Date: 18 Feb 2007 23:36:39 GMT X-Complaints-To: abuse@meganetnews.com