Article View: news.software.readers
Article #1361Re: Newsgroup causing xrn to barf
From: Michael Salmon
Date: Sat, 21 Mar 1992 13:04
Date: Sat, 21 Mar 1992 13:04
46 lines
2433 bytes
2433 bytes
In article <20951@hacgate.UUCP>, danw@stonyman.hac.com (Dan White) writes:
|>
|> There is a newsgroup out there called "alt.music.enya.puke.puke.pukeSender:"
|>
|> Because of the colon in the title of the group, xrn barfs on it when it
|> reads it from my .newsrc file. Can someone either get rid of it or rename
|> it ?
Here is a patch that I am experimenting with to prevent these newsgroups from
getting into my .newsrc. I'm not sure if the error messages will be a problem
though.
diff -c server.c ../xrn6-17/server.c
*** server.c Sat Mar 21 13:39:28 1992
--- ../xrn6-17/server.c Wed Dec 4 20:29:36 1991
***************
*** 458,467 ****
/* server returns: group last first y/m/x/=otherGroup */
! for ( ptr = message; *ptr == ' ';++ptr); /* skip leading spaces */
! assert(GROUP_NAME_SIZE > 127);
! if (sscanf(message, "%127[^ \t\n,:!] %ld %ld %s", group, &last, &first, type) != 4
! || !isalpha(*group)) {
mesgPane(XRN_SERIOUS, "Bogus active file entry, skipping\n%s", message);
continue;
}
--- 458,464 ----
/* server returns: group last first y/m/x/=otherGroup */
! if (sscanf(message, "%s %ld %ld %s", group, &last, &first, type) != 4) {
mesgPane(XRN_SERIOUS, "Bogus active file entry, skipping\n%s", message);
continue;
}
--
Michael Salmon
#include <standard.disclaimer>
#include <witty.saying>
#include <fancy.pseudo.graphics>
Ericsson Telecom AB
Stockholm
Technical Details
Message-ID:
<1992Mar21.130401.6012@ericsson.se>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!spool.mu.edu!yale.edu!yale!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!ugle.unit.no!nuug!ifi.uio.no!sics.se!eua.ericsson.se!ericom!eos.ericsson.se!etxmesaReferences:
<20951@hacgate.UUCP>Show Full Headers
Complete Article Headers
Message-ID: <1992Mar21.130401.6012@ericsson.se> Subject: Re: Newsgroup causing xrn to barf Date: Sat, 21 Mar 1992 13:04:01 +0000 From: etxmesa@eos.ericsson.se (Michael Salmon) References: <20951@hacgate.UUCP> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!spool.mu.edu!yale.edu!yale!mintaka.lcs.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!ugle.unit.no!nuug!ifi.uio.no!sics.se!eua.ericsson.se!ericom!eos.ericsson.se!etxmesa Newsgroups: news.software.readers Article-I.D.: ericsson.1992Mar21.130401.6012 Sender: news@ericsson.se Reply-To: etxmesa@eos.ericsson.se (Michael Salmon) Organization: Ericsson Telecom AB Lines: 46 Nntp-Posting-Host: eos6c02.ericsson.se