🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
14 messages
14 total messages Started by Mark Hill Mon, 30 Jun 2003 00:17
[slrn] bug with news: urls (0.9.7.4pl2)
#127357
Author: Mark Hill
Date: Mon, 30 Jun 2003 00:17
16 lines
1432 bytes
Hi I notice that when I write a URL like this:
<news:alt.os.linux.slackware>
the 'URL view' option sees the URL as 
alt.os.linux.slackware>

I see that Thomas Schultz has tackled this bug before with 0.9.7.2 in 
Message-ID: <slrn9oo0cp.6ve.tststs@starflower.tststs.ddns.org>
but is this a bug that has reared its head again? I don't remember it
being there in 0.9.7.4 stable, (but perhaps I don't remember correctly).


-- 
Mark Hill <mark_usenet@yahoo.co.uk>
A. Top posters
Q. What is the most annoying thing on usenet?
	-- fruit
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127358
Author: Blinky the Shark
Date: Mon, 30 Jun 2003 00:40
17 lines
1677 bytes
Mark Hill wrote:
> Hi I notice that when I write a URL like this:
><news:alt.os.linux.slackware>
> the 'URL view' option sees the URL as 
> alt.os.linux.slackware>

> I see that Thomas Schultz has tackled this bug before with 0.9.7.2 in 
> Message-ID: <slrn9oo0cp.6ve.tststs@starflower.tststs.ddns.org>
> but is this a bug that has reared its head again? I don't remember it
> being there in 0.9.7.4 stable, (but perhaps I don't remember correctly).

I'm using it, and I don't see the problem.

-- 
Blinky                              Linux RU 297263
Spam: The Boulder Pledge   http://snurl.com/boulder
All In The Family      http://snurl.com/familything
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127361
Author: Mark Hill
Date: Mon, 30 Jun 2003 01:23
16 lines
1295 bytes
On 2003-06-30, 
 Blinky the Shark <no.spam@box.invalid> wrote:
> Mark Hill wrote:
>> I don't remember it
>> being there in 0.9.7.4 stable, (but perhaps I don't remember correctly).
>
> I'm using it, and I don't see the problem.

Thanks. I guess it's a pl2 thing then. 


-- 
Mark Hill <mark_usenet@yahoo.co.uk>
Not to worry, you're running Linux.
        -- Glenn Stone, Linux Journal
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127369
Author: SINNER
Date: Mon, 30 Jun 2003 02:09
17 lines
1879 bytes
While strolling through news.software.readers, Mark Hill was overheard plotting:
> On 2003-06-30, 
>  Blinky the Shark <no.spam@box.invalid> wrote:
>> Mark Hill wrote:
>>> I don't remember it
>>> being there in 0.9.7.4 stable, (but perhaps I don't remember correctly).

>> I'm using it, and I don't see the problem.

> Thanks. I guess it's a pl2 thing then. 

Nope...
-- 
David
What does not destroy me, makes me stronger.
		-- Nietzsche
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127373
Author: Mark Hill
Date: Mon, 30 Jun 2003 02:29
39 lines
2210 bytes
On 2003-06-30, 
 SINNER <99nesorjd@gates_of_hell.INVALID> wrote:
>>> Mark Hill wrote:
>
>> Thanks. I guess it's a pl2 thing then. 
>
> Nope...


It's happening here with no macros loaded. 
Here's my slrn --version FWIW.


Slrn 0.9.7.4pl2 [2003-01-11]
	* Note: This version is a developer preview.
S-Lang Library Version: 1.4.5
Compiled at: Apr 28 2003 04:40:09
Operating System: Linux

 COMPILE TIME OPTIONS:
  Backends: +nntp +slrnpull +spool
  External programs / libs: -canlock -inews -ssl -uudeview
  Features: +charset_mapping +decoding +emphasized_text +end_of_thread
    +fake_refs +gen_msgid -grouplens +mime -msgid_cache +piping +rnlock
    +slang +spoilers -strict_from
 DEFAULTS:
  Default server object:     nntp
  Default posting mechanism: nntp
  Default character set:     isolatin
 SUPPORTED CHARACTER SETS:
  isolatin ibm850 ibm852 ibm857 ibm737 NeXT koi8



I read news through slrnpull, although I've just tried reading from my 
news server's spool and the same thing occurs.

-- 
Mark Hill <mark_usenet@yahoo.co.uk>
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127372
Author: SINNER
Date: Mon, 30 Jun 2003 02:40
30 lines
2375 bytes
While strolling through news.software.readers, Mark Hill was overheard plotting:

> It's happening here with no macros loaded. 
> Here's my slrn --version FWIW.


> Slrn 0.9.7.4pl2 [2003-01-11]
> 	* Note: This version is a developer preview.
> S-Lang Library Version: 1.4.5
> Compiled at: Apr 28 2003 04:40:09
> Operating System: Linux

>  COMPILE TIME OPTIONS:
>   Backends: +nntp +slrnpull +spool

Only difference

 COMPILE TIME OPTIONS:
   Backends: +nntp -slrnpull -spool

> I read news through slrnpull, although I've just tried reading from my 
> news server's spool and the same thing occurs.

I use Leafnode, havent tried without it.

-- 
David
Hear me, my chiefs, I am tired; my heart is sick and sad.  From where the
sun now stands I Will Fight No More Forever.
		-- Chief Joseph of the Nez Perce
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127396
Author: Janne Nikula
Date: Mon, 30 Jun 2003 11:27
21 lines
1764 bytes
Mark Hill <mark_usenet@yahoo.co.uk> wrote:
> Hi I notice that when I write a URL like this:
> <news:alt.os.linux.slackware>
> the 'URL view' option sees the URL as 
> alt.os.linux.slackware>

Yes, I have the same problem (using 0.9.7.4pl2) and it is annoying. The
following patch should make slrn to do the right thing in this context.

diff -ur slrn-0.9.7.4pl2.orig/src/art.c slrn-0.9.7.4pl2/src/art.c
--- slrn-0.9.7.4pl2.orig/src/art.c	Sat Jan  4 14:37:49 2003
+++ slrn-0.9.7.4pl2/src/art.c	Mon Jun 30 13:59:40 2003
@@ -891,7 +891,7 @@
 	  }
 	
 	/* at the end of the URL, these are probably punctuation */
-	while ((tmp < ptr) && (NULL != slrn_strchr (".,;:()", *(ptr - 1))))
+	while ((tmp < ptr) && (NULL != slrn_strchr (".,;:()<>", *(ptr - 1))))
 	  ptr--;
 	
 	l_buf = ptr;
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127400
Author: SINNER
Date: Mon, 30 Jun 2003 12:50
28 lines
2509 bytes
While strolling through news.software.readers, Janne Nikula was overheard plotting:
> Mark Hill <mark_usenet@yahoo.co.uk> wrote:
>> Hi I notice that when I write a URL like this:
>> <news:alt.os.linux.slackware>
>> the 'URL view' option sees the URL as 
>> alt.os.linux.slackware>

> Yes, I have the same problem (using 0.9.7.4pl2) and it is annoying. The
> following patch should make slrn to do the right thing in this context.

> diff -ur slrn-0.9.7.4pl2.orig/src/art.c slrn-0.9.7.4pl2/src/art.c
> --- slrn-0.9.7.4pl2.orig/src/art.c	Sat Jan  4 14:37:49 2003
> +++ slrn-0.9.7.4pl2/src/art.c	Mon Jun 30 13:59:40 2003
> @@ -891,7 +891,7 @@
>  	  }
>  	
>  	/* at the end of the URL, these are probably punctuation */
> -	while ((tmp < ptr) && (NULL != slrn_strchr (".,;:()", *(ptr - 1))))
> +	while ((tmp < ptr) && (NULL != slrn_strchr (".,;:()<>", *(ptr - 1))))
>  	  ptr--;
>  	
>  	l_buf = ptr;

Why dont I get the problem?
-- 
David
Of what you see in books, believe 75%.  Of newspapers, believe 50%.  And of
TV news, believe 25% -- make that 5% if the anchorman wears a blazer.
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127401
Author: Janne Nikula
Date: Mon, 30 Jun 2003 14:38
19 lines
1911 bytes
SINNER <99nesorjd@gates_of_hell.INVALID> wrote:
> While strolling through news.software.readers, Janne Nikula was
> overheard plotting:
>> Mark Hill <mark_usenet@yahoo.co.uk> wrote:
>>> Hi I notice that when I write a URL like this:
>>> <news:alt.os.linux.slackware>
>>> the 'URL view' option sees the URL as 
>>> alt.os.linux.slackware>
>
>> Yes, I have the same problem (using 0.9.7.4pl2) and it is annoying. The
>> following patch should make slrn to do the right thing in this context.
>> [...]
>
> Why dont I get the problem?

I have no idea, to be honest. The tiny patch I sent just adds the
characters '<' and '>' to the list of punctuation characters that
shouldn't be considered to be a part of the URL if they're in the end.
That does the right thing for me. I don't know about others...
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127485
Author: Mark Hill
Date: Tue, 01 Jul 2003 20:07
10 lines
1324 bytes
On 2003-06-30, 
 Janne Nikula <jni@iki.fi> wrote:
>
> Yes, I have the same problem (using 0.9.7.4pl2) and it is annoying. The
> following patch should make slrn to do the right thing in this context.

Thanks. The patch fixes the problem here also.

-- 
Mark Hill <mark_usenet@yahoo.co.uk>
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127712
Author: Thomas Schultz
Date: Fri, 04 Jul 2003 20:02
41 lines
2367 bytes
* Janne Nikula [2003-06-30 11:27] :

> Yes, I have the same problem (using 0.9.7.4pl2) and it is annoying.
> The following patch should make slrn to do the right thing in this
> context. [...]

Not quite. When dealing with Message-IDs (like in
news:<some@message.id>), the closing bracket really is part of the
URL, so it's wrong to simply cut it off in all cases (like slrn
0.9.7.4 did). That's the reason why I changed the code.

I now see that my "fix" introduced a new problem. Hopefully, the
following patch will work correctly in all cases:

--- art.c~	2003-05-08 22:42:06.000000000 +0200
+++ art.c	2003-07-04 21:52:32.000000000 +0200
@@ -876,12 +876,17 @@
 	
 	if (is_news)
 	  {
+	     int saw_opening_bracket = 0;
+	     
 	     ptr+=5;
 	     if (*ptr == '<')
-	       ptr++;
+	       {
+		  ptr++;
+		  saw_opening_bracket = 1;
+	       }
 	     while ((ch = *ptr) && (NULL == slrn_strchr (" \t\n<>", ch)))
 	       ptr++;
-	     if (*ptr == '>')
+	     if ((*ptr == '>') && saw_opening_bracket)
 	       ptr++;
 	  }
 	else
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2002-03-13] slrn 0.9.7.4 is out
| Home of the slrn newsreader | [2002-02-03] Screenshot page online
| http://slrn.sourceforge.net | [2002-02-03] "Port" to Mac OS X
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#127716
Author: Janne Nikula
Date: Fri, 04 Jul 2003 20:36
15 lines
1800 bytes
Thomas Schultz <tststs@gmx.de> wrote:
> * Janne Nikula [2003-06-30 11:27] :
>> Yes, I have the same problem (using 0.9.7.4pl2) and it is annoying.
>> The following patch should make slrn to do the right thing in this
>> context. [...]
>
> Not quite. When dealing with Message-IDs (like in
> news:<some@message.id>), the closing bracket really is part of the
> URL, so it's wrong to simply cut it off in all cases (like slrn
> 0.9.7.4 did).

Oh, you're right. Thanks for a working patch. :)

By the way, would it be possible to add the support for <URL: ... >
constructs (as mentioned in RFC1738) to the slrn wishlist?
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#128062
Author: Thomas Schultz
Date: Tue, 08 Jul 2003 17:12
13 lines
1738 bytes
* Janne Nikula [2003-07-04 20:36] :

> By the way, would it be possible to add the support for <URL: ... >
> constructs (as mentioned in RFC1738) to the slrn wishlist?

What exactly are you missing? Constructs like <URL:ftp://ftp.foo.bar/>
<URL:http://www.foo.bar/> <URL:news:id@foo.bar> should already be
handled correctly.
-- 
Thomas Schultz <tststs@gmx.de>  News on slrn: http://slrn.sf.net/news.html
.-----------------------------. [2002-03-13] slrn 0.9.7.4 is out
| Home of the slrn newsreader | [2002-02-03] Screenshot page online
| http://slrn.sourceforge.net | [2002-02-03] "Port" to Mac OS X
Re: [slrn] bug with news: urls (0.9.7.4pl2)
#128072
Author: Janne Nikula
Date: Tue, 08 Jul 2003 21:00
12 lines
1743 bytes
Thomas Schultz <tststs@gmx.de> wrote:
> * Janne Nikula [2003-07-04 20:36] :
>> By the way, would it be possible to add the support for <URL: ... >
>> constructs (as mentioned in RFC1738) to the slrn wishlist?
>
> What exactly are you missing? Constructs like <URL:ftp://ftp.foo.bar/>
> <URL:http://www.foo.bar/> <URL:news:id@foo.bar> should already be
> handled correctly.

Yes, true, but URLs spanning to multiple lines (possibly containing
whitespace) aren't, e.g. <URL: http://www.debian.org/releases/stable/
  i386/ch-preparing.en.html#s3.3.4 >
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads