Article View: news.software.readers
Article #73744Re: [long] slrn and XPAT command
From: Thomas Schultz
Date: Sat, 17 Mar 2001 15:47
Date: Sat, 17 Mar 2001 15:47
40 lines
2136 bytes
2136 bytes
* Renaud Colinet [2001-03-13 18:40] :
[...]
> At this point my conclusion is: either slrn uses an incorrect XPAT
> syntax that some servers may interpret wrongly, or XPAT is wrongly
> implemented on my favourite server.
Although I think the latter is true, it seems easy to work around this
in slrn. Can you confirm that the following patch solves the problem?
#v+
diff -ru slrn-0.9.6.4pl4a/src/art.c slrn-0.9.7.0/src/art.c
--- slrn-0.9.6.4pl4a/src/art.c Fri Mar 16 22:57:29 2001
+++ slrn-0.9.7.0/src/art.c Sat Mar 17 16:40:42 2001
@@ -5890,6 +5890,7 @@
while (1)
{
int status;
+ char *p;
status = Slrn_Server_Obj->sv_read_line (buf, sizeof (buf) - 1);
if (status <= 0)
@@ -5903,6 +5904,12 @@
id = atoi (buf);
if (id <= 0) continue;
+
+ p = buf;
+ while ((*p != 0) && (*p != ' '))
+ p++;
+ if ((*p == 0) || (*(p+1) == 0))
+ continue;
if (NULL != find_header_from_serverid (id)) continue;
id_array[num_ids] = id;
#v-
--
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
-> [2001-03-15] Public preview of slrn 0.9.7.0
-> [2001-01-28] First steps towards slrn 0.9.7.0
-> [2001-01-19] Thomas Schultz new slrn maintainer
Technical Details
Message-ID:
<slrn9b71o9.9p3.tststs@starflower.tststs.ddns.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeed.icl.net!newsfeed.esat.net!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mailReferences:
<RQtr6.140$KH2.554160@nnrp1.proxad.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn9b71o9.9p3.tststs@starflower.tststs.ddns.org> Subject: Re: [long] slrn and XPAT command Date: Sat, 17 Mar 2001 15:47:21 +0000 From: tststs@gmx.de (Thomas Schultz) References: <RQtr6.140$KH2.554160@nnrp1.proxad.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeed.icl.net!newsfeed.esat.net!do.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mail Newsgroups: news.software.readers Organization: Pinguin online. Lines: 39 NNTP-Posting-Host: 149.225.49.243 NNTP-Posting-Date: 17 Mar 2001 16:05:34 GMT X-Complaints-To: abuse@cityweb.de X-Server-Date: 17 Mar 2001 16:03:09 GMT User-Agent: slrn/0.9.6.4pl4a (Linux)