Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2.fluke 9/24/84; site fluke.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!vax135!cornell!uw-beaver!fluke!joe From: joe@fluke.UUCP (Joe Kelsey) Newsgroups: net.news.b Subject: New newsgroups are sorted to the head of your .newsrc file (2.10.2) Message-ID: <2005@vax4.fluke.UUCP> Date: Tue, 18-Dec-84 14:59:15 EST Article-I.D.: vax4.2005 Posted: Tue Dec 18 14:59:15 1984 Date-Received: Thu, 20-Dec-84 04:29:26 EST Organization: John Fluke Mfg. Co., Inc., Everett, WA Lines: 43 Subject: New newsgroups are sorted to the head of your .newsrc file Index: rfuncs.c Description: Whenever a new newsgroup is created, SORTARTICLES puts it at the front of your .newsrc list. Repeat-By: #define SORTARTICLES, then wait for new newsgroups to come in. Fix: I suppose that there could be some argument about whether or not this is really a bug. I prefer to use "user preference", since I obviously prefer that new newsgroups be shown to me LAST. Here is a fix to rfuncs.c: *** /tmp/,RCSt1029275 Tue Dec 18 11:49:31 1984 --- rfuncs.c Mon Dec 17 13:42:40 1984 *************** *** 586,591 if (p = index(aline, ' ')) *p = '\0'; table[nlines].rcpos = findrcline(aline); table[nlines].actpos = actpos; nlines++; actpos = ftell(afp); --- 586,596 ----- if (p = index(aline, ' ')) *p = '\0'; table[nlines].rcpos = findrcline(aline); + #ifndef NEWFIRST + if (table[nlines].rcpos < 0) { + table[nlines].rcpos = 0x7fffffff; + } + #endif NEWFIRST table[nlines].actpos = actpos; nlines++; actpos = ftell(afp); I suppose that you really should use MAXINT instead of 0x7fffffff, but there is no convenient predefined constant, and I didn't want to define one. /Joe