joe@fluke.UUCP (Joe Kelsey) (12/18/84)
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