Thread View: news.software.readers
28 messages
28 total messages
Started by Tom J Parry
Wed, 23 Jun 1993 11:33
Re: TIN Xref patch (01/01)
Author: Tom J Parry
Date: Wed, 23 Jun 1993 11:33
Date: Wed, 23 Jun 1993 11:33
59 lines
3954 bytes
3954 bytes
Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote: > Submitted-by: iain.lea@erlm.siemens.de > Archive-name: tin-xref/part01 > The following is a patch to the tin v1.2 PL0 newsreader that > implements Xref: article processing (ie. automatic marking of > crossposted articles). It was submitted for inclusion in the > next release by Herman ten Brugge <herman@htbrug.hobby.nl>. > This patch should be applied to v1.2 PL0 source using 'patch'. > Please test this patch as much as possible and mail me your > results or problems/fixes (if any :). > If responses are *favourable* I will add this UNOFFICIAL patch > to the next official release of tin. The article size stuff is pretty good, except when you change the 'M'enu setting, nothing changes until you exit and restart tin. Also (and this is an opinion only) I don't think the feature is very useful when you use threading, since only the base note size is shown. I have no idea how one would solve this. I suppose the answer is that a thread can't have a size attached to it, it doesn't make much sense. But, the reason for this post is Xref:. Xref works fine when you read an article and when you hit 'K' on a thread. It does not do anything when you 'X' a whole newsgroup or when you 'c' or 'C' it. Now I don't believe that Xref: should do anything when you 'c' or 'C' at the group selection level, because you can't see any article details. At the article selection level, if 'K' kills Xref's then so should 'X'. There are two ways of reading a group where you read only some threads. One way is to 'K' the threads you don't want then read the rest. The second is to mark with '.' all the ones you're interested in and then 'X' away all the rest. Both should support Xref: Only the first one does. I read many high volume newsgroups with a lot of crossposting between them (the os2 heirarchy being a typical example). I mark those threads I like and read them. They still show up in the other groups though and this Xref: patch doesn't seem to do anything about that if I use 'X' to weed out the unwanted threads. 'c' and 'C' are a different issue but I believe if I can see the list of thread titles and I press 'c' or 'C' then I should never see those articles again, even in Xref'ed groups. 'c' and 'C' at the group selection level is a different matter I think since you can't see article titles. If my argument for 'X' above holds and with no articles highlighted, 'X" is semi-equivalent to 'C' (depending on your setting for X_presses_TAB) then it should hold for 'c' and 'C' too. Just my 0.02, but given my news reading patterns, this Xref: patch only helps (and does help well, thank you Hermann) when I actually read articles or 'K' them. I think it should be more destructive. Maybe with a .tinrc option (then you could even make it a 4 way setting: off, how it is now, my proposal and my proposal + 'c' + 'C' at the group selection level for the particularly trigger happy users) if people don't agree. At the moment the feature is somewhat handicapped. -- Tom J Parry. Your reality is a figment of my imagination.
Re: TIN Xref patch (01/01)
Author: Colin Perkins
Date: Wed, 23 Jun 1993 19:23
Date: Wed, 23 Jun 1993 19:23
52 lines
3357 bytes
3357 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote: >Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote: >> Submitted-by: iain.lea@erlm.siemens.de >> Archive-name: tin-xref/part01 >> The following is a patch to the tin v1.2 PL0 newsreader that >> implements Xref: article processing (ie. automatic marking of >> crossposted articles). It was submitted for inclusion in the >> next release by Herman ten Brugge <herman@htbrug.hobby.nl>. [...deleted...] >But, the reason for this post is Xref:. Xref works fine when you read an >article and when you hit 'K' on a thread. It does not do anything when you >'X' a whole newsgroup or when you 'c' or 'C' it. Now I don't believe that >Xref: should do anything when you 'c' or 'C' at the group selection level, >because you can't see any article details. At the article selection level, >if 'K' kills Xref's then so should 'X'. There are two ways of reading a >group where you read only some threads. One way is to 'K' the threads you >don't want then read the rest. The second is to mark with '.' all the ones >you're interested in and then 'X' away all the rest. Both should support >Xref: Only the first one does. Agreed. [...deleted...] >'c' and 'C' are a different issue but I believe if I can see the list of >thread titles and I press 'c' or 'C' then I should never see those articles >again, even in Xref'ed groups. 'c' and 'C' at the group selection level is >a different matter I think since you can't see article titles. If my >argument for 'X' above holds and with no articles highlighted, 'X" is >semi-equivalent to 'C' (depending on your setting for X_presses_TAB) then >it should hold for 'c' and 'C' too. My preference would be for it to kill the Xref'd articles if pressed at the article selection level, since that is a consious decision to junk all the articles in the group, _after_ having seen what they are (you've at least seen the article titles at this point). On the other hand, I'm not sure about the system removing Xref'd articles when c/C is pressed from the group selection level. This seems excessive to me. Do you really want the system to kill _all_ occurances of an article which you've possibly never even seen the title of? This Xref patch is a useful addition, but I think that it needs extending in scope before it achieves its full potential... Still, big thanks to Hermann - it's a much needed extension to tin. Colin -- Colin Perkins Adaptive Systems Engineering Group Email: csp@ohm.york.ac.uk University of York, YO1 5DD, UK. Phone: +44 904 432379
Re: TIN Xref patch (01/01)
Author: Iain Lea
Date: Wed, 23 Jun 1993 20:29
Date: Wed, 23 Jun 1993 20:29
22 lines
1584 bytes
1584 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote: : : > The following is a patch to the tin v1.2 PL0 newsreader that : > implements Xref: article processing ... : : The article size stuff is pretty good, except when you change the 'M'enu : setting, nothing changes until you exit and restart tin. I am not sure that I will be including this in the base release. It was easier to leave it in the patch than to remove it from Hermann's patch. : But, the reason for this post is Xref:. Xref works fine when you read an : article and when you hit 'K' on a thread. It does not do anything when you : 'X' a whole newsgroup or when you 'c' or 'C' it. Hermann removed Xref support from 'c' & 'C' for the 2nd xref patch he sent me. It will be pretty easy to add it back in if response is favourable. Iain -- iain.lea@erlm.siemens.de +49-911-3089-407
Re: TIN Xref patch (01/01)
Author: Tom J Parry
Date: Thu, 24 Jun 1993 00:09
Date: Thu, 24 Jun 1993 00:09
15 lines
1463 bytes
1463 bytes
Colin Perkins (csp@ohm.york.ac.uk) wrote: > On the other hand, I'm not sure about the system removing Xref'd > articles when c/C is pressed from the group selection level. This > seems excessive to me. Do you really want the system to kill _all_ > occurances of an article which you've possibly never even seen the > title of? No. It was my extra option for the really savage among us :-) I agree, if you've seen titles and ask them to go away (in any way) then away they should go! -- Tom J Parry. Your reality is a figment of my imagination.
Re: TIN Xref patch (01/01)
Author: Alan Thew
Date: Thu, 24 Jun 1993 09:30
Date: Thu, 24 Jun 1993 09:30
22 lines
1831 bytes
1831 bytes
On Wed, 23 Jun 1993 20:29:04 GMT , Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote: : Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote: : : ... : : The article size stuff is pretty good, except when you change the 'M'enu : : setting, nothing changes until you exit and restart tin. : I am not sure that I will be including this in the base release. It was : easier to leave it in the patch than to remove it from Hermann's patch. : : But, the reason for this post is Xref:. Xref works fine when you read an : : article and when you hit 'K' on a thread. It does not do anything when you : : 'X' a whole newsgroup or when you 'c' or 'C' it. I would like the Xref code to kill articles when I hit 'c' since I check article titles and if I use 'c' than I've no wish to even see the titles of these articles again. Surely the Xref code in news readers is designed to speed the reading process up as much as possible? Thanks for making the patch available. -- Alan Thew alan.thew@liverpool.ac.uk ...!uknet!liv!alan.thew +44 51 794 3735
Re: TIN Xref patch (01/01)
Author: Pope Clifton
Date: Fri, 25 Jun 1993 09:20
Date: Fri, 25 Jun 1993 09:20
33 lines
2443 bytes
2443 bytes
Alan Thew (qq11@liverpool.ac.uk) wrote:
: On Wed, 23 Jun 1993 20:29:04 GMT , Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote:
: : : But, the reason for this post is Xref:. Xref works fine when you read an
: : : article and when you hit 'K' on a thread. It does not do anything when you
: : : 'X' a whole newsgroup or when you 'c' or 'C' it.
: I would like the Xref code to kill articles when I hit 'c' since I check
: article titles and if I use 'c' than I've no wish to even see the titles of
: these articles again. Surely the Xref code in news readers is designed to
: speed the reading process up as much as possible?
(If you're reading all the thread names, why not just use 'K's?)
I vote the opposite. I read several very-high-volume groups (e.g.
news.groups and alt.config) and if I fall too far behind, I periodically use
'c' to zap all messages in said group, sight unseen. I don't want that to
also kill messages crossposted to some more focused group (e.g. a crosspost
to news.software.readers.)
My wife, reading over my shoulder, says the same thing about how she uses
tin. (Another satisfied customer...)
There seem to be at least two very different usage styles for tin, one of
which calls for one treatment of 'c', 'C' and maybe 'X' (leave the articles
in other groups); the other calls for the opposite (killing it in all
groups.) Yet another user-configured option?
-- Clifton
--
cliftonr@netcom.com Home: +1 808 521 9073 Work: +1 808 625 3234
Clifton Royston, Pope of the Church of the Subgenius in Paradise
Them helpis no conclusionis sle / Timor mortis conturbat me.
Re: TIN Xref patch (01/01)
Author: Iain Lea
Date: Fri, 25 Jun 1993 10:48
Date: Fri, 25 Jun 1993 10:48
27 lines
2109 bytes
2109 bytes
Pope Clifton (cliftonr@netcom.com) wrote: : : : I would like the Xref code to kill articles when I hit 'c' since I check : : article titles and if I use 'c' than I've no wish to even see the titles of : : these articles again. Surely the Xref code in news readers is designed to : : speed the reading process up as much as possible? : : (If you're reading all the thread names, why not just use 'K's?) : : There seem to be at least two very different usage styles for tin, one of : which calls for one treatment of 'c', 'C' and maybe 'X' (leave the articles : in other groups); the other calls for the opposite (killing it in all : groups.) Yet another user-configured option? I was hoping to avoid another tinrc flag. 'cC' should catchup the present group and any related xref articles in other groups. Xref processing will speed things up so you can take a bit more time to scan the subject lines. Having now studied the xref code patch I can now understand why some people have commented that it slows down the 'K' command on big groups. It seems to be accessing the disk a little to often. I'll fix this before including xref in the base release. Iain -- iain.lea@erlm.siemens.de +49-911-3089-407
Re: TIN Xref patch (01/01)
Author: Alan Thew
Date: Fri, 25 Jun 1993 14:22
Date: Fri, 25 Jun 1993 14:22
22 lines
1905 bytes
1905 bytes
On Fri, 25 Jun 1993 09:20:58 GMT , Pope Clifton (cliftonr@netcom.com) wrote: : Alan Thew (qq11@liverpool.ac.uk) wrote: .... : : I would like the Xref code to kill articles when I hit 'c' since I check : : article titles and if I use 'c' than I've no wish to even see the titles of : : these articles again. Surely the Xref code in news readers is designed to : : speed the reading process up as much as possible? : (If you're reading all the thread names, why not just use 'K's?) I do. I use both. I've only really started using 'K' though because 'c' doesn't work the way rn/xrn/trn work... : I vote the opposite. I read several very-high-volume groups (e.g. : news.groups and alt.config) and if I fall too far behind, I periodically use : 'c' to zap all messages in said group, sight unseen. I don't want that to : also kill messages crossposted to some more focused group (e.g. a crosspost : to news.software.readers.) I see your point. -- Alan Thew alan.thew@liverpool.ac.uk ...!uknet!liv!alan.thew +44 51 794 3735
Re: TIN Xref patch (01/01)
Author: Tom J Parry
Date: Sat, 26 Jun 1993 08:28
Date: Sat, 26 Jun 1993 08:28
29 lines
2206 bytes
2206 bytes
Pope Clifton (cliftonr@netcom.com) wrote: > : I would like the Xref code to kill articles when I hit 'c' since I check > : article titles and if I use 'c' than I've no wish to even see the titles of > : these articles again. Surely the Xref code in news readers is designed to > : speed the reading process up as much as possible? > (If you're reading all the thread names, why not just use 'K's?) Because it requires you to hit K once for each article you want to kill. Now, if you're reading 1 in 20 articles, you only have to . once a page. As you point out below, user preferences will dictate here. > There seem to be at least two very different usage styles for tin, one of > which calls for one treatment of 'c', 'C' and maybe 'X' (leave the articles > in other groups); the other calls for the opposite (killing it in all > groups.) Yet another user-configured option? I see 3 different situations. 1)Reading, 'K', etc - always mark xrefs (although) 2) 'X' and also [cC] at the thread/article selection level 3) [cC] at the group selection level. I'd say a 0-3 config option would work fine. Nobody will want 3 without 2 and 1 etc... -- Tom J Parry. Your reality is a figment of my imagination.
Re: TIN Xref patch (01/01)
Author: Iain Lea
Date: Sat, 26 Jun 1993 14:50
Date: Sat, 26 Jun 1993 14:50
154 lines
7169 bytes
7169 bytes
Alan Thew (qq11@liverpool.ac.uk) wrote:
:
: : (If you're reading all the thread names, why not just use 'K's?)
: I do. I use both. I've only really started using 'K' though because 'c'
: doesn't work the way rn/xrn/trn work...
I have now integrated the xref code into the next release (due soon).
I have added xref processing to the 'cC' commands at group index level.
The following list is the current changes file from v1.2 PL0 -> PL1:
(note: A large AmigaDOS patch is the last thing I am working on for PL1)
1) Earle Ake (ake@dayton.saic.com)
BUG. BSDI has a bulitin compiler define that is not used.
FIX. tin.h - applied supplied patch.
2) Joachim Astel (achim@jat.sub.org)
BUG. HAVE_SYS_TIME_H is defined in config.h but not used in tin.h
FIX. tin.h - added HAVE_SYS_TIME_H #ifdef around sys/time.h.
3) Iain Lea (iain.lea@erlm.siemens.de)
BUG. While adding SCO Unix include file to v2.0 I forgot v1.2 PL0.
FIX. tin.h - added <sys/times.h> for SCO Unix machines.
4) Mike Glendinning (mikeg@ingres.co.uk)
BUG. If using external inews via nntp the .signature is appened twice.
FIX. sigfile.c - applied supplied patch.
5) Anon (anon)
BUG. Convex machines don't have gmtoff structure.
FIX. config.h - Added __convex__ to #define DONT_HAVE_TM_GMTOFF.
6) Joachim Astel (achim@jat.sub.org)
BUG. Would not compile out of the box on CDC 4680 EPIX machine.
FIX. Makefile config.h - applied supplied patch.
7) George Baltz (gwb@umd5.umd.edu)
BUG. Would not compile out of the box on DEC Alpha OSF/1 machine.
FIX. config.h tin.h - applied supplied patch.
8) Jim Morris (jegm@cody.esd.sgi.com)
BUG. INSTALL document does not explain NOV & XOVER style index files.
FIX. INSTALL - Added short note on NOV & XOVER.
9) Bryan Curnutt (bryan%uhura1@uunet.uu.net)
BUG. Typo's in the install rules in the Makefile.
FIX. Makefile - applied supplied patch.
10) Bryan Curnutt (bryan%uhura1@uunet.uu.net)
BUG. Compiling & installing tind daemon could be clearer.
FIX. INSTALL - applied supplied patch.
11) Hakan Lennestal (Hakan.Lennestal@lu.erisoft.se)
BUG. builtin inews does not use sitename/mailname files for hostname.
FIX. inews.c - applied supplied patch.
12) Michael Morrell (morrell@hpsal2.cup.hp.com)
BUG. get_user_info() in inews.c doesn't handle "&"s properly.
FIX. inews.c - applied supplied patch.
13) Clifton Royston (cliftonr@netcom.com)
BUG. Checking local news system for new newsgroups uses brute force.
FIX. active.c - applied supplied patch.
14) Iain Lea (iain.lea@erlm.siemens.de)
ADD. config.h - added #define NNTP_ABLE as default for machines that
have net code in system libc.
15) John Schmitz (schmitz@scd.hp.com)
BUG. 'g'oto group command does not resize if new group longer than
others. Hilite problem on HPUX.
FIX. group.c - added supplied patch.
16) John Schmitz (schmitz@scd.hp.com)
BUG. Posting should check if each line begins with a '.' and if so
add another '.'.
FIX. inews.c - added supplied patch.
17) Christopher Sawtell (chris@gerty.equinox.gen.nz)
BUG. Would not compile on ATT 3b2.
FIX. config.h tin.h signal.c - applied supplied patch.
18) Tony Travis (ajt@rowett.scot-agric-res-inst.ac.uk)
BUG. Editor will not start correctly if it does not support
+Num line offset notation.
FIX. misc.c - added strfeditor() to allow editor string to
be defined by user in tinrc. Allows format strings:
%E editor %F filename %N linenumber (ie. %E +%N %F)
19) Iain Lea (iain.lea@erlm.siemens.de)
BUG. -M & -S options should both require explicit -c to update
the users newsrc file.
FIX. main.c - removed implicit -c catchup from -M option.
20) Iain Lea (iain.lea@erlm.siemens.de)
BUG. Active file reread time is too short when reading over slow line.
FIX. tin.h - increased to 600 secs (10 mins).
21) Karl Denninger (karl@genesis.MCS.COM)
BUG. No way to specify alternate root dir if using local nov style indexes.
FIX. Makefile open.c - Added NOVROOTDIR define to specify nov root dir
if other than usual spool dir.
22) Soren Moller (sjm@dde.dk)
BUG. Would not compile on DDE Supermax machines.
FIX. config.h - applied supplied patch.
23) Klaus Mueller (mueller@rbg.informatik.th-darmstadt.de)
BUG. When reading via nntp setup_base() sometimes misses first articles.
FIX. open.c - applied supplied patch.
24) Klaus Mueller (mueller@rbg.informatik.th-darmstadt.de)
BUG. When reading via INN should use LISTGROUP command for better speed.
FIX. open.c - applied supplied patch.
25) Mark Smith (mark@vti.com)
BUG. TIOCGWINSZ was being redefined on ISC Unix.
FIX. config.h - applied supplied patch.
26) Iain Lea (iain.lea@erlm.siemens.de)
BUG. Would not compile on SysVR4 machines.
FIX. config.h curses.c - Added check for termios.h include file.
27) Iain Lea (iain.lea@erlm.siemens.de)
BUG. setup_base() was being called twice if reading nov indexes.
FIX. art.c - moved setup_base() to central position in index_group().
28) Philip Shearer (pbs@atb.ch)
BUG. SVR4 machines should use poll() call in preference to select()
FIX. INSTALL config.h tin.h art.c - applied supplied patch. Added
HAVE_POLL & HAVE_SELECT so poll()/select() can be specified.
29) Clifton Royston (cliftonr@netcom.com)
BUG. User aborting of indexing does not work at lower levels.
FIX. group.c page.c select.c - applied supplied patch.
30) David Abbott (dfa@rabbit.physiol.unimelb.edu.au)
BUG. Using popen(ls -t *) to get newest file in dir is ineffecient.
FIX. save.c - applied supplied patch.
31) Tom Dickey (dickey@software.org)
BUG. Would not compile on Apollo machines.
FIX. config.h - applied supplied patch.
32) Herman ten Brugge (herman@htbrug.hobby.nl)
BUG. Xref: article headers are not processed so crossposted
articles are not marked as read in other newsgroups.
FIX. tin.h newsrc.c group.c page.c - applied supplied patch.
Iain
--
iain.lea@erlm.siemens.de +49-911-3089-407
Re: TIN Xref patch (01/01)
Author: Tom J Parry
Date: Mon, 28 Jun 1993 13:13
Date: Mon, 28 Jun 1993 13:13
14 lines
1599 bytes
1599 bytes
Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote: > > 32) Herman ten Brugge (herman@htbrug.hobby.nl) > BUG. Xref: article headers are not processed so crossposted > articles are not marked as read in other newsgroups. > FIX. tin.h newsrc.c group.c page.c - applied supplied patch. Iain, you said that you would be modifying the patch so it was not so disk intensive? Did you manage to do this?Killing a thread with a few followups is quite slow with the patch as posted. -- Tom J Parry. Your reality is a figment of my imagination.
INN & Xover with Xref:'s (was Re: TIN Xref patch (01/01))
Author: Iain Lea
Date: Mon, 28 Jun 1993 14:34
Date: Mon, 28 Jun 1993 14:34
39 lines
2761 bytes
2761 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote: : Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote: : > : > 32) Herman ten Brugge (herman@htbrug.hobby.nl) : > BUG. Xref: article headers are not processed so crossposted : > articles are not marked as read in other newsgroups. : > FIX. tin.h newsrc.c group.c page.c - applied supplied patch. ; : Iain, you said that you would be modifying the patch so it was not so disk : intensive? Did you manage to do this?Killing a thread with a few followups : is quite slow with the patch as posted. Yes & no. The reason it was so slow was that it was reopening every unread article and reading the Xref: line. Not exactly a free lunch considering I parse each article header to begin with. What I have done is expanded the XINDEX file format to include the Xref: header (& Lines: header while I was at it). By expanding the xindex file format I have been able to get very good Xref processing for local spooldir & NNTP reference with my XINDEX patch applied. Now INN & XOVER is another story. By default the xover index files don't have Xref: headers generated therefore no Xref processing by default. To get around this in tin I have added a 'XHDR Xref Artnum' to retrieve the Xref: line of an article. This can turn out to be slightly expensive in large groups with many unread articles (but a hell of a lot better than doing a HEAD call for every unread article!). To summarize - I have improved the code to the point that *I* can live with it. The best solution would be to get Rich Salz to change INN's default overview.fmt to have Xref:'s generated by default (comments Rich?). Iain -- iain.lea@erlm.siemens.de +49-911-3089-407
Re: INN & Xover with Xref:'s (was Re: TIN Xref patch (01/01))
Author: Iain Lea
Date: Mon, 28 Jun 1993 14:52
Date: Mon, 28 Jun 1993 14:52
29 lines
2160 bytes
2160 bytes
Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote:
:
: Now INN & XOVER is another story. By default the xover index
: files don't have Xref: headers generated therefore no Xref
: processing by default. To get around this in tin I have added
: a 'XHDR Xref Artnum' to retrieve the Xref: line of an article.
: This can turn out to be slightly expensive in large groups with
: many unread articles (but a hell of a lot better than doing a
: HEAD call for every unread article!).
Just a few performance numbers to add to the previous posting:
Reading a group containing 150 unread articles via a 64Kb ISDN
connection I got the following times for the original Xref patch
and the original + my tweaks:
Original (used HEAD Ouch!) 60 secs.
Tweaked (using XHDR) 42 secs.
Iain
PS. The times are provided to allow a relative comparision of
a feature within the tin reader, not to show how fast tin
is against newsreader X. The last sentence of *gibberish*
will hopefully stop the usual lot of characters flaming
anything that moves (you know who you are :).
--
iain.lea@erlm.siemens.de +49-911-3089-407
Re: INN & Xover with Xref:'s (was Re: TIN Xref patch (01/01))
Author: Rich Salz
Date: Mon, 28 Jun 1993 14:52
Date: Mon, 28 Jun 1993 14:52
12 lines
1338 bytes
1338 bytes
In <20mvi1$oth@Germany.EU.net> iain.lea@anl433.erlm.siemens.de (Iain Lea) writes: > The best solution would be to get Rich Salz >to change INN's default overview.fmt to have Xref:'s generated >by default (comments Rich?). By default INN's overview stuff is 100% compatible with Geoff's original code. To add Xref headers an INN admin only has to add "Xref:full" to the end of their overview.fmt file and restart INN. I do not want to break my 100% compatibility. Perhaps the TIN readme file should tell INN people they need to make this change. /r$
Re: INN & Xover with Xref:'s (was Re: TIN Xref patch (01/01))
Author: Iain Lea
Date: Mon, 28 Jun 1993 20:11
Date: Mon, 28 Jun 1993 20:11
17 lines
1374 bytes
1374 bytes
Rich Salz (rsalz@osf.org) wrote: : : By default INN's overview stuff is 100% compatible with Geoff's original : code. To add Xref headers an INN admin only has to add "Xref:full" to : the end of their overview.fmt file and restart INN. Has Geoff got any comments on the Xref: header on by default? : I do not want to break my 100% compatibility. Perhaps the TIN : readme file should tell INN people they need to make this change. I will add a note to my INSTALL document for the next release. Iain -- iain.lea@erlm.siemens.de +49-911-3089-407
Re: INN & Xover with Xref:'s (was Re: TIN Xref patch (01/01))
Author: Jason Haar
Date: Mon, 28 Jun 1993 22:00
Date: Mon, 28 Jun 1993 22:00
18 lines
1640 bytes
1640 bytes
In article <20mvi1$oth@Germany.EU.net> Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote: > Now INN & XOVER is another story. By default the xover index > files don't have Xref: headers generated therefore no Xref > processing by default. To get around this in tin I have added > a 'XHDR Xref Artnum' to retrieve the Xref: line of an article. > This can turn out to be slightly expensive in large groups with > many unread articles (but a hell of a lot better than doing a > HEAD call for every unread article!). If someone changes their local INN so that Xrefs are included in overview.fmt (whatever), will tin be able to do that instead of using XHDR? -- Cheers Jason Haar, Network Consultant
Re: INN & Xover with Xref:'s (was Re: TIN Xref patch (01/01))
Author: Iain Lea
Date: Tue, 29 Jun 1993 20:37
Date: Tue, 29 Jun 1993 20:37
15 lines
1394 bytes
1394 bytes
Jason Haar (j.haar@csc.canterbury.ac.nz) wrote: : : > Now INN & XOVER is another story. By default the xover index : > files don't have Xref: headers generated therefore no Xref : > processing by default. : : If someone changes their local INN so that Xrefs are included in : overview.fmt (whatever), will tin be able to do that instead of using XHDR? You have hit the nail on the head. I can't test my xover parser code for xref's because there are'nt any. I guess I will just have to wait until my INN feed turns on xref generation before adding it to tin. -- iain.lea@erlm.siemens.de +49-911-3089-407
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
Author: Rob Robertson
Date: Wed, 30 Jun 1993 08:16
Date: Wed, 30 Jun 1993 08:16
42 lines
2681 bytes
2681 bytes
In article <20rt5e$8kp@spatula.csv.warwick.ac.uk> cudep@csv.warwick.ac.uk (Ian Dickinson) writes: I already have Xref:full in my overview.fmt since it speeds up trn3 as well. If I decided to add another header (which I'll get onto later), do I need to restart overchan? Do I need to rebuild the entire database? Or will it gradually migrate to the new requirements, without upsetting itself, or any newsreaders? you need to re-read the overview.fmt file a 'ctlinnd reload overview.fmt' should do it. the new data will just trickle into the database. after the conversion, you can configure your newsreaders to use the new header via the overview database. the problem is that your newsreaders can't depend on the data, until the conversion is complete i'd do it all at once: ctlinnd reload overview.fmt find /var/spool/news . -name .overview -print | xargs rm -f expireover -a The reason I'd like to do this is that inpaths is starting to take a long time with the amount of news we have around. I was think of experimenting with putting Path:full in overview.fmt, and letting inpaths grab and use that instead of having to open every single article after a trawl through the history file. Quite a few peoples killfiles are based on the Path: header, so it should speed those up too. if it's primarily for inpaths, i wouldn't do it. your going to be increasing the size of your overview database substatially, plus toting all that stuff around. i'd either leave inpaths the way it iz. or do a header feed to a script which grep's out the Path: line. rob -- william robertson rob@agate.berkeley.edu "indecision is the key to flexibility"
Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
Author: Ian Dickinson
Date: Wed, 30 Jun 1993 11:24
Date: Wed, 30 Jun 1993 11:24
30 lines
2593 bytes
2593 bytes
In article <1993Jun29.203723.1317@anl433.uucp>, iain.lea@anl433.erlm.siemens.de (Iain Lea) writes: >Jason Haar (j.haar@csc.canterbury.ac.nz) wrote: >: If someone changes their local INN so that Xrefs are included in >: overview.fmt (whatever), will tin be able to do that instead of using XHDR? >You have hit the nail on the head. I can't test my xover parser code >for xref's because there are'nt any. I guess I will just have to wait >until my INN feed turns on xref generation before adding it to tin. I already have Xref:full in my overview.fmt since it speeds up trn3 as well. If I decided to add another header (which I'll get onto later), do I need to restart overchan? Do I need to rebuild the entire database? Or will it gradually migrate to the new requirements, without upsetting itself, or any newsreaders? The reason I'd like to do this is that inpaths is starting to take a long time with the amount of news we have around. I was think of experimenting with putting Path:full in overview.fmt, and letting inpaths grab and use that instead of having to open every single article after a trawl through the history file. Quite a few peoples killfiles are based on the Path: header, so it should speed those up too. Any comments? Cheers, -- \/ato - Ian Dickinson - NIC handle: ID17 This article is dedicated to vato@csv.warwick.ac.uk ...!uknet!warwick!vato those who disapprove but /I=I/S=Dickinson/OU=CSV/O=Warwick/PRMD=UK.AC/ADMD= /C=GB/ continue to @c=GB@o=University of Warwick@ou=Computing Services@cn=Ian Dickinson read
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
Author: Rich Salz
Date: Wed, 30 Jun 1993 15:14
Date: Wed, 30 Jun 1993 15:14
13 lines
1563 bytes
1563 bytes
In <20rt5e$8kp@spatula.csv.warwick.ac.uk> cudep@csv.warwick.ac.uk (Ian Dickinson) writes: >If I decided to add another header (which I'll get onto later), do I need >to restart overchan? Do I need to rebuild the entire database? Or will >it gradually migrate to the new requirements, without upsetting itself, >or any newsreaders? If you change overview.fmt you definitely need to ctlinnd reload it and to restart overchan. Do you need to rebuild the entire database? That depends. You should not need to do this, since adding "full" headers are self-describing, and clients should be graceful if they don't see all full header in all entries. At least trn3, however, gets very upset if you claim to have "Xref:full" and sometimes don't. /r$
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
Author: Rob Robertson
Date: Wed, 30 Jun 1993 17:46
Date: Wed, 30 Jun 1993 17:46
22 lines
1938 bytes
1938 bytes
In article <C9GKzI.3y9@borland.com> davison@borland.com (Wayne Davison) writes: I'm fairly certain that in C news' implementation if there is no Xref line in the article there is nothing put into the "others" field of the overview file. If INN differs here we should get the two packages to do the same thing. I believe that INN doesn't really have the concept of the catch-all field that C news does -- it has a fixed number of fields that are always present, some of which have the preceding header "id" present. C news has a fixed number of fields without ids that are always present and a catch-all field that may contain any number of other fields preceded by their ids. your right. it's been a bug in the INN implementation that i've known about since day one, but haven't gotten around to fix. i'll try to have patches in rich's mail box tomorrow for INN 1.5. rob -- william robertson rob@agate.berkeley.edu "indecision is the key to flexibility"
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
Author: Wayne Davison
Date: Wed, 30 Jun 1993 17:52
Date: Wed, 30 Jun 1993 17:52
24 lines
2174 bytes
2174 bytes
According to Rich Salz <rsalz@rodan.UU.NET>: > At least trn3, however, gets very upset > if you claim to have "Xref:full" and sometimes don't. It doesn't get upset, it just gets mislead. There is no negative indication for the presence an xref header (i.e. "no xrefs in the overview file" looks exactly the same as "no xrefs for the current article"). Because of this trn doesn't know if your news database has xrefs in the overview file until it happens to run across one in the "others" field of some group (which can take quite some time, depending on the group). Once it finds one it simply assumes that all the other articles don't have xrefs. Thus, an overview file that is partially-converted to having xrefs is deceiving. This ambiguity could be eliminated by always including the header even when it is empty, but I don't think it'd really be worth the extra space. Perhaps what we really need is an overview header file in the root of the news database that indicates what fields are present in what order. NNTP would have to be modified to send this file but at least we could then know for sure exactly what data we can expect from the overview file (and in the case of a new field you wouldn't turn on its presence until it had propagated enough into the database to be useful). .wayne..
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
Author: Rich Salz
Date: Wed, 30 Jun 1993 19:23
Date: Wed, 30 Jun 1993 19:23
14 lines
1482 bytes
1482 bytes
In <C9G4BD.JCw@borland.com> davison@borland.com (Wayne Davison) writes: >This ambiguity could be eliminated by always including the header even >when it is empty, but I don't think it'd really be worth the extra space. Yes, the header is always included, even when it is empty. This does not, however, fix the situation of old data not having the header. >Perhaps what we really need is an overview header file in the root of the >news database that indicates what fields are present in what order. NNTP >would have to be modified to send this file INN supports a "LIST OVERVIEW.FMT" command that returns the overview.fmt file. I would like to see this added to the NNTP reference implementation. /r$
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
Author: Wolfgang Rupprecht
Date: Wed, 30 Jun 1993 23:07
Date: Wed, 30 Jun 1993 23:07
24 lines
2093 bytes
2093 bytes
cudep@csv.warwick.ac.uk (Ian Dickinson) writes: >The reason I'd like to do this is that inpaths is starting to take a long time >with the amount of news we have around. I was think of experimenting with >putting Path:full in overview.fmt, and letting inpaths grab and use that >instead of having to open every single article after a trawl through the >history file. Quite a few peoples killfiles are based on the Path: header, >so it should speed those up too. You can also just run an inpath-like program as an INN channel. That way you don't have to store all the path lines in your overview database, you can process the Path lines and discard them. I already have several procs that run on a header or overview stream that snarf various bits of info. Perhaps it would be good to hack an extension to INN that would cause only selected header lines to be sent out of a channel. That would save quite a bit of cpu time over sending out the whole header and then filtering it do death just to extract one line. -wolfgang -- Wolfgang Rupprecht <wolfgang@wsrcc.com> 39469 Gallaudet Dr., Fremont CA 94538
Re: Changing contents of NOV databases (Was: Re: INN & Xover with Xref:'s)
Author: Wayne Davison
Date: Wed, 30 Jun 1993 23:52
Date: Wed, 30 Jun 1993 23:52
33 lines
2493 bytes
2493 bytes
According to Rich Salz <rsalz@rodan.UU.NET>: > Yes, the header is always included, even when it is empty. I'm fairly certain that in C news' implementation if there is no Xref line in the article there is nothing put into the "others" field of the overview file. If INN differs here we should get the two packages to do the same thing. I believe that INN doesn't really have the concept of the catch-all field that C news does -- it has a fixed number of fields that are always present, some of which have the preceding header "id" present. C news has a fixed number of fields without ids that are always present and a catch-all field that may contain any number of other fields preceded by their ids. > This does not, however, fix the situation of old data not having the > header. Sure it does. Instead of having three possible conditions mapped into two discernable states we now have three states: (1) xref header may or may not exist -- look for it (no Xref: in others); (2) xref is known to NOT exist (empty Xref: line in others); (3) xref exists (Xref: line with contents). > INN supports a "LIST OVERVIEW.FMT" command that returns the overview.fmt > file. I would like to see this added to the NNTP reference implementation. I'd go with that. It would require the addition of an overview.fmt file on a C news system which wouldn't actually affect the overview contents, but that shouldn't be a problem. I'd much rather see a fixed list of overview fields, none of which have a preceding id described by a file such as overview.fmt than what we have right now (though, of course, I have to support the current system as the default if no overview.fmt file is found). .wayne..
INN LIST/XPATH commands (Was: "Re: Changing contents of NOV databases")
Author: Greg Earle
Date: Sat, 03 Jul 1993 23:17
Date: Sat, 03 Jul 1993 23:17
54 lines
2847 bytes
2847 bytes
In article <20sp7dINNh0r@rodan.uu.net> rsalz@rodan.UU.NET (Rich Salz) writes:
>In <C9G4BD.JCw@borland.com> davison@borland.com (Wayne Davison) writes:
>>Perhaps what we really need is an overview header file in the root of the
>>news database that indicates what fields are present in what order. NNTP
>>would have to be modified to send this file
>
>INN supports a "LIST OVERVIEW.FMT" command that returns the overview.fmt
>file. I would like to see this added to the NNTP reference implementation.
Rich,
Just noticed the following trivia: the HELP message for nnrpd says
HELP
100 Legal commands
..
list [active|newsgroups|distributions|schema]
..
mode reader
..
xpath xpath MessageID
..
(1) "overview.fmt" is not listed in the help text for "LIST"
(2) Is "mode reader" a useful command for nnrpd? (-:
Adjunct note: the HELP message for "innd" mentions "mode" but does not
mention that an argument is necessary; in fact, the HELP message for innd
doesn't mention any required/optional parameters, unlike the HELP message
for nnrpd (which is very useful, btw)
(3) "xpath xpath MessageID" is a Dept. of Redundancy Dept. (-:
Also, when feeding "XPATH" to nnrpd, the "MessageID" needs to be delimited
with "<" and ">" (not mentioned in the help text), yet these delimiters
are not required/needed when using the "grephistory" command:
isolar:2:71 % /usr/local/news/bin/grephistory davel.740941258@cisco.com
/usr/spool/news/news/software/b/1144
200 isolar InterNetNews NNRP server INN 1.4 20-Mar-93 ready (posting ok).
XPATH davel.740941258@cisco.com
430 Don't have it
XPATH <davel.740941258@cisco.com>
223 news/software/b/1144
Questions about orthogonality are left as an exercise for the author (-:
--
- Greg Earle
Phone: (818) 353-8695 FAX: (818) 353-1877
Internet: earle@isolar.Tujunga.CA.US
UUCP: isolar!earle@elroy.JPL.NASA.GOV a.k.a. ...!elroy!isolar!earle
Re: TIN Xref patch (01/01)
Author: Pope Clifton
Date: Mon, 05 Jul 1993 01:52
Date: Mon, 05 Jul 1993 01:52
21 lines
1824 bytes
1824 bytes
Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote:
: Alan Thew (qq11@liverpool.ac.uk) wrote:
: :
: : : (If you're reading all the thread names, why not just use 'K's?)
: : I do. I use both. I've only really started using 'K' though because 'c'
: : doesn't work the way rn/xrn/trn work...
: I have now integrated the xref code into the next release (due soon).
: I have added xref processing to the 'cC' commands at group index level.
Now that I've played with it a little, I think this is an acceptable
compromise. If I want to catch up a group without affecting x-posts, I can
just back out to the group selection page. So far the Xref patch is working
great. My thanks to all involved!
-- Clifton
--
cliftonr@netcom.com Home: +1 808 521 9073 Work: +1 808 625 3234
Clifton Royston, Pope of the Church of the Subgenius in Paradise
Them helpis no conclusionis sle / Timor mortis conturbat me.
Re: INN & Xover with Xref:'s (was Re: TIN Xref patch (01/01))
Author: Pope Clifton
Date: Tue, 06 Jul 1993 09:34
Date: Tue, 06 Jul 1993 09:34
93 lines
4420 bytes
4420 bytes
Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote:
: Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:
: : Iain Lea (iain.lea@anl433.erlm.siemens.de) wrote:
: : >
: : > 32) Herman ten Brugge (herman@htbrug.hobby.nl)
: : > BUG. Xref: article headers are not processed so crossposted
: : > articles are not marked as read in other newsgroups.
: : > FIX. tin.h newsrc.c group.c page.c - applied supplied patch.
: ;
: : Iain, you said that you would be modifying the patch so it was not so disk
: : intensive? Did you manage to do this?Killing a thread with a few followups
: : is quite slow with the patch as posted.
: Yes & no. The reason it was so slow was that it was reopening
: every unread article and reading the Xref: line. Not exactly
: a free lunch considering I parse each article header to begin
: with. ...
I found another major source of performance problems with the local (NFS)
and local indexes implementation here. The code to parse the article
headers was using a very non-optimal method of determining the number of
lines and bytes per article, namely scanning through the whole thing. I am
posting a patch which goes on top of the XRef patch, to make it get the
lines from the "Lines:" field, and the byte count using fseek/ftell. This
speeds up indexing dramatically.
The XRef patch actually had several changes bundled into it, like this whole
byte count/line count on thread selection, etc. It's made it a little
harder to evaluate, but I can live with it.
There seems to be one more major slow point in between finishing indexing
and starting threading; I haven't tracked that down yet, but maybe in
another week or two... It's late at night and I'm rambling. Here's the
patch.
-- Clifton
====== BEGIN PATCH =============================
*** art.c.xrf Tue Jul 6 02:14:15 1993
--- art.c Tue Jul 6 02:14:33 1993
***************
*** 581,604 ****
}
}
break;
}
if (! flag || lineno > max_lineno || got_archive) {
! while (*ptr) {
! if (*ptr++ == '\n')
! lineno++;
! }
! while ((n = fread (buf, 1, sizeof (buf)-1, fp)) > 0) {
! buf[n] = '\0';
! bytecnt += n;
! ptr = buf;
! while (*ptr) {
! if (*ptr++ == '\n')
! lineno++;
! }
! }
! h->linecnt = lineno;
! h->bytecnt = bytecnt;
if (got_from && got_date) {
if (! got_subject) {
h->subject = hash_str ("<No subject>");
--- 581,601 ----
}
}
break;
+ case 'L': /* Lines: optional */
+ /* A better way to get the line count -- Clifton */
+ if (! h->linecnt ) {
+ if (match_header (ptrline, "Lines", buf2, HEADER_LEN)) {
+ sscanf( buf2, "%ld", &(h->linecnt) );
+ }
+ }
+ break;
}
if (! flag || lineno > max_lineno || got_archive) {
! /* A better way to get the byte count -- Clifton */
! fseek( fp, 0, 2 );
! h->bytecnt = ftell( fp );
!
if (got_from && got_date) {
if (! got_subject) {
h->subject = hash_str ("<No subject>");
====== END PATCH ===============================
--
cliftonr@netcom.com Home: +1 808 521 9073 Work: +1 808 625 3234
Clifton Royston, Pope of the Church of the Subgenius in Paradise
Them helpis no conclusionis sle / Timor mortis conturbat me.
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