Article View: news.software.nn
Article #9799Aliased groups and nn 6.5.5
From: Charles Lindsey
Date: Thu, 21 Jun 2001 16:03
Date: Thu, 21 Jun 2001 16:03
44 lines
2919 bytes
2919 bytes
I have nn compiled with NOV (so no nnmaster) but without NNTP (so I access the news spool directly). It is possible to have, in the active file, groups of the form: comp.foo 000000001 0000001 =comp.bar comp.bar 000000005 0000001 y (This is CNews, but I think most servers offer that same feature). The effect should be that, whenever you ask to see comp.foo, what you actually get to see is comp.bar. Now poking around in the source code shows that this was all intended to work correctly in the days of nnmaster. There is a file active.c with routine read_active_file that understands all about such aliasing and does all the right things. But it was only ever called when setting up the master database (in which case I presume it then did everything correctly - the code certainly looks right). But with NOV, read_active_file never gets called. Instead, in db.c, you find a routine readactfile, called from open_master (NOV version), which never even looks at the 4th field of active. However, when you go to a new group, it calls lookup (also in db.c), and lookup looks in gh->master_flag for the M_ALIASED bit, and it it finds it, it goes off and looks for the real location of the group. So the feature was clearly _intended_ to work as before. Sadly, however, that _ALIASED bit is never set anywhere, though it is easy to see where it could have been set up, and read_active_file shows pretty clearly the proper way to do so. So is this a bug or a feature? And is the problem fixed in the forthcoming new release? I will gladly write the code and prepare a patch for version 6.5.x, but I guess that part of the code for the new release will have been well worked over (in fact, on poking around in the code, the whole of the NOV implementation looks like a quick add-on job, and the underlying thinking is still 'nnmaster'). -- Charles H. Lindsey ---------At Home, doing my own thing------------------------ Tel: +44 161 436 6131 Fax: +44 161 436 6133 Web: http://www.cs.man.ac.uk/~chl Email: chl@clw.cs.man.ac.uk Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K. PGP: 2C15F1A9 Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5
Technical Details
Message-ID:
<GFAF9u.1Bt@clw.cs.man.ac.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!skynet.be!peer.news.eu-x.com!server2.netnews.ja.net!mimas.salford.ac.uk!peernews.mcc.ac.uk!cs.man.ac.uk!clerew!chlShow Full Headers
Complete Article Headers
Message-ID: <GFAF9u.1Bt@clw.cs.man.ac.uk> Subject: Aliased groups and nn 6.5.5 Date: Thu, 21 Jun 2001 16:03:30 GMT From: chl@clw.cs.man.ac.uk (Charles Lindsey) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!skynet.be!peer.news.eu-x.com!server2.netnews.ja.net!mimas.salford.ac.uk!peernews.mcc.ac.uk!cs.man.ac.uk!clerew!chl Newsgroups: news.software.nn X-Newsreader: NN version 6.5.2 (NOV) Lines: 48