Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 11/03/84 (WLS Mods); site jendeh.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!astrovax!fisher!jendeh!arash From: arash@jendeh.UUCP (Arash Farmanfarmaian) Newsgroups: net.sources.bugs Subject: Checknews/Vnews discreepancies Message-ID: <160@jendeh.UUCP> Date: Fri, 31-May-85 06:52:18 EDT Article-I.D.: jendeh.160 Posted: Fri May 31 06:52:18 1985 Date-Received: Sat, 1-Jun-85 03:08:02 EDT Distribution: net Organization: The Coalition of United Associations Lines: 47 Considering the couple complaints I have seen on the net about Checknews and Vnews not agreeing on the existance of 'news' here is a simple fix for the problem. Checknews, among other actions, will decide that there is news if a newsgroup line in '.newsrc' does not have any digits in it, i.e. is of the format: something.something: In this case it assumes that there is unread news and says so, even if no article was ever received for that specific newsgroup. The fix for this problem is very simple as shown by the diff below. diff checknews.c.ORG checknews.c 218c218 < long narts; --- > long narts, nlowest; 226c226 < sscanf(aline, "%s %ld", bfr, &narts); --- > sscanf(aline, "%s %ld %ld", bfr, &narts, &nlowest); 256c256,257 < if (ptr < rcbuf) { --- > if (ptr < rcbuf) > if (nlowest <= narts) { 260c261,262 < } --- > } > else continue; All we do here is check to see if there are any articles in the 'offending' newsgroup and only then flagging the existance of un-read news. Note: This fix is particular to news 2.10.2 (or any version with a 4 field 'active' file) Arash Farmanfarmaian'85 -- Arash Farmanfarmaian ...!allegra!princeton!jendeh!arash "Any man who lives within his means suffers from a lack of imagination"