rd@tarpit.uucp (Bob Thrush) (07/27/89)
After converting to C News from B News 2.11.14 with dbz, I noticed that rn was no longer marking cross-posted articles as read in the `Xref:'d newsgroups. There were 2 problems associated with the fact that both rn (with DBM) and dbz.c v1.5 (as posted by Jon Zeeff) forced lower case article ids while C News and its version of dbz.c wanted case insensitive ids. As a result, rn could no longer find cross-posted articles in chase_xrefs() in bits.c. The relevant change to rn is attached. Your line nos. will probably not match since I had to make other changes to get my compiler to accept "bits.c". Make sure that you #define CNEWS to implement the change (I did it the Makefile). The dbz problem was corrected by using the C News version of libdbz.a. *** bits.c Wed Jul 26 22:46:31 1989 --- bits.c.orig Wed Jul 26 22:46:28 1989 *** 323,331 **** { datum lhs, rhs; datum fetch(); - #ifndef CNEWS register char *idp; - #endif /* CNEWS */ char *ident_buf; static FILE * hist_file = Nullfp; #else --- 312,318 ---- *************** *** 364,375 **** if (debug) printf ("chase_xref: Message-ID: %s\n", ident_buf); #endif - #ifndef CNEWS idp = ident_buf; while (*++idp) /* make message-id case insensitive */ if (isupper(*idp)) *idp = tolower (*idp); - #endif /* CNEWS */ lhs.dptr = ident_buf; /* look up article by id */ lhs.dsize = strlen(lhs.dptr) + 1; rhs = fetch(lhs); /* fetch the record */ -- Bob Thrush UUCP: uunet!tarpit!rd Automation Intelligence, 1200 W. Colonial Drive, Orlando, Florida 32804