news.misc@dr.uucp (04/11/89)
I am using checknews 2.31 and have discovered a possible bug,
or at least a somewhat annoying situation causing checknews to
reply "no news" when I actaully have received news??
My .newsrc-file is buildt by readnews after I have inserted
'option' and control/junk.
readnews will create a news-group line for each news-group
in your active-file - even those without any news. Those
without any news will have following format:
comp.bugs.misc:
When this line is interpreted by checknews, checknews will
bypass it even though corresponding line in your active-file
says there are news in this group!
In line 271 and 272 in my original checknews, I found:
if (*ptr == ':')
continue;
E.g. the search loop continues if the line ends with ':'!!
Note, it really makes no difference if the line has trailing
blanks or tabs, as they have already been removed by checknews!
To solve the problem I replaced line 271,272 with:
if (*ptr == ':') {
strcpy(rcbuf, " 0");
ptr = rcbuf + 1;
}
And it works perfectly....
Tom Rojahn
+--------------------------------------------------------------+
! DataRojahn-> Tel: +479945178 Mobil: 03006606 Fax: +479945592 !
! uucp: dr!tom Tel: +479945180 login: public Password: Public !
! USENET/EUnet: ...!mcvax!ndosl!dr!tom or: tom@dr.uucp !
+--------------------------------------------------------------+