πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by tony summerfelt Fri, 02 Oct 1998 00:00
slrn score file
#43521
Author: tony summerfelt
Date: Fri, 02 Oct 1998 00:00
25 lines
1541 bytes
i have identical setups for both win NT and linux. i just transferred the
score file and .slrnrc file from my NT  to my linux setup. with the
appropriate path changes the .slrnrc file worked fine. but my score file
stopped working...

more specifically, the regex's don't work. exact matches work (from,
subject, etc) unfortunately most of my score file entries are regex's :(

did i miss something when compiling slrn? taking a quick look through
slrnfeat.h and sysconf.h didn't reveal anything obvious...

any help appreciated...


-- 
.t

*------------------------------------------------------------------------
| * origin: ...the vented spleen 613-544-9332 (1:249/139_
| 'you want a toe? I can get you a toe.'
| take myspleen out to reply via email
*------------------------------------------------------

Re: slrn score file
#43523
Author: tony summerfelt
Date: Sat, 03 Oct 1998 00:00
41 lines
1995 bytes
On 3 Oct 1998 02:40:42 GMT, Dawn Owens-Nicholson wrote:

> Sounds like you're trying to use a regular expression on the header side of
> the header:regex pair.  This is not allowed.

>     Score: 100                                   % Doesn't work (regex:regex)
> 	  S?bjec?: slrn

i wouldn't have even thought of trying to do it that way :)

it doesn't suprise me if that wouldn't work...

here's the section for this newsgroup:

[news.software.readers]
     Score:: 9999
      Subject: slrn 
      Subject: s-lang
      Subject: slang
      Subject: usenet
      Subject: gnksa
      From: davis@space\.mit\.edu (John E\. Davis)
	 
this works fine under nt (or 95 for that matter) but does not work under linux
the only thing i can think of is that something wasn't compiled right...but
slrn seems to be working fine otherwise...

i guess i could try that scoregen.pl that was posted a few weeks ago as a
temprorary measure...

-- 
.t
*-------------------------------------------------------------------------
| origin: ...the vented spleen kingston on (613-544-9332) 1:249/139 
|
| `you want a toe? i can get you a toe'
|
| take myspleen out to reply via email
*-------------------------------------

Re: slrn score file
#43529
Author: Dawn Owens-Nicholson
Date: Sat, 03 Oct 1998 00:00
19 lines
1331 bytes
tony summerfelt wrote:
> more specifically, the regex's don't work. exact matches work (from,
> subject, etc) unfortunately most of my score file entries are regex's :(

Sounds like you're trying to use a regular expression on the header side of
the header:regex pair.  This is not allowed.

[newsgroup.wildmat(s)]
    Score: 100                                   % This works (header:regex)
	  Subject: slrn
	  
    Score: 100                                   % Doesn't work (regex:regex)
	  S?bjec?: slrn

If scores of the latter syntax (regex:regex) work in your slrn, your slrn
has been altered to support this.  The standard slrn from
ftp://space.mit.edu/pub/davis/slrn/ does not support this.

Re: slrn score file
#43535
Author: Dawn Owens-Nicholson
Date: Sun, 04 Oct 1998 00:00
30 lines
1538 bytes
tony summerfelt wrote:
> here's the section for this newsgroup:
> 
>       Subject: s-lang
>       Subject: slang

By the way, these can be compressed into one line:

      Subject: s-?lang

>       From: davis@space\.mit\.edu (John E\. Davis)

I'd recommend using the e-mail address alone or the name alone:

      From: davis@space\.mit\.edu
      From: John E\. Davis

> this works fine under nt (or 95 for that matter) but does not work under
> linux the only thing i can think of is that something wasn't compiled
> right...but slrn seems to be working fine otherwise...

Did you tell slrn where your scorefile is in your slrnrc (the "scorefile"
command)?

> i guess i could try that scoregen.pl that was posted a few weeks ago as a
> temprorary measure...

This will only work if you compiled slrn with macro support.

Re: slrn score file
#43536
Author: tony summerfelt
Date: Sun, 04 Oct 1998 00:00
49 lines
2441 bytes
On 4 Oct 1998 16:23:21 GMT, Dawn Owens-Nicholson wrote:

> By the way, these can be compressed into one line:

>       Subject: s-?lang

> >       From: davis@space\.mit\.edu (John E\. Davis)

> I'd recommend using the e-mail address alone or the name alone:

>       From: davis@space\.mit\.edu
>       From: John E\. Davis

at this point it doesn't make any difference because regex's don't work. the
one's above were `captured' using `k' and then edited afterwards (on a win
nt machine)

> Did you tell slrn where your scorefile is in your slrnrc (the "scorefile"
> command)?

yes. if i hit `k' to add to the score file, quit and then reenter, the newly
added item works. as i mentioned in a previous message exact matches work,
but not regex's. count me as puzzled...

and to reiterate, if i boot into nt, it all works fine :/

> guess i could try that scoregen.pl that was posted a few weeks ago as a

> This will only work if you compiled slrn with macro support.

where abouts in the source would i look that that? i just checked slrnfeat.h
and sysconf.h and slrnconf.h as obvious files, but didn't see anything
commented out (or in) .

i'm using other .sl's i wrote myself (and extended search and a revamped 
saving of unread messages) and they work fine under both linux and win nt...


-- 
.t
*-------------------------------------------------------------------------
| origin: ...the vented spleen kingston on (613-544-9332) 1:249/139 
|
| `you want a toe? i can get you a toe'
|
| take myspleen out to reply via email
*-------------------------------------

Re: slrn score file
#43538
Author: Dawn Owens-Nicholson
Date: Sun, 04 Oct 1998 00:00
18 lines
1528 bytes
tony summerfelt wrote:
> yes. if i hit `k' to add to the score file, quit and then reenter, the newly
> added item works. as i mentioned in a previous message exact matches work,
> but not regex's. count me as puzzled...

Did you link slrn with the latest version of S-Lang?  Perhaps you should try
downloading the latest slrn and S-Lang and recompiling both in Linux.

> i'm using other .sl's i wrote myself (and extended search and a revamped 
> saving of unread messages) and they work fine under both linux and win nt...

Then S-Lang macro support is enabled.  src/slrnfeat.h is the file to edit to
enable/disable S-Lang macro support:

 /* Set this to 0 if you do not want the slang interpreter made available. */
 #define SLRN_HAS_SLANG          1

Re: slrn score file
#43541
Author: tony summerfelt
Date: Mon, 05 Oct 1998 00:00
23 lines
1714 bytes
On 4 Oct 1998 20:42:07 GMT, Dawn Owens-Nicholson wrote:

> Did you link slrn with the latest version of S-Lang?  Perhaps you should try
> downloading the latest slrn and S-Lang and recompiling both in Linux.

the previous versions of slang, slrn and jed i had were rpm's (from
caldera's linux distribution), i uninstalled those and recompiled the latest
versions (0.9.5.2 of slrn)...

as far as i can tell it's just the regex's in the score file that doesn't 
work. i'm assuming that slang is ok (i'm typing this with jed)

-- 
.t
*-------------------------------------------------------------------------
| origin: ...the vented spleen kingston on (613-544-9332) 1:249/139 
|
| `you want a toe? i can get you a toe'
|
| take myspleen out to reply via email
*-------------------------------------

Re: slrn score file
#43543
Author: tony summerfelt
Date: Mon, 05 Oct 1998 00:00
36 lines
2052 bytes
On 5 Oct 1998 00:36:01 GMT, Marko Teittinen wrote:

> Just a really wild guess. 
> (end-of-line) character in the files. DOS and Windows use \n\r
> whereas Linux uses \n. So maybe Linux tries to match the extra \r

[smacking forehead...HARD]

bingo! i should know better. perl has made me lazy as it takes care of that
between platforms...i usually convert my text files when i move them over,
but i was in a rush to get slrn up and running...

i'm not sure i would have even thought of that unless pointed towards it.

i'm back up to where i should have been days ago :)


> Oh, one editor that does not work in Windows with plain newlines is
> Notepad.

i use jed in both environments. although to remove the extra stuff in my
.score file i had to use joe which showed the characters...

much appreciated to you guys for listening to my rantings :)

-- 
.t
*-------------------------------------------------------------------------
| origin: ...the vented spleen kingston on (613-544-9332) 1:249/139 
|
| `you want a toe? i can get you a toe'
|
| take myspleen out to reply via email
*-------------------------------------

Re: slrn score file
#43544
Author: R. A. Larsen
Date: Mon, 05 Oct 1998 00:00
15 lines
1353 bytes
marko@tekamah.com (Marko Teittinen) wrote:
[cut]
> Oh, one editor that does not work in Windows with plain newlines is
> Notepad. So if you plan to use notepad for your Windows score file
> editing, you may need to keep two copies around.

Or use some program to convert DOS <-> UNIX (eg. GNU Utils).

RenοΏ½
-- 
Using Virtual Access
http://www.vamail.com


Re: slrn score file
#43551
Author: Marko Teittinen
Date: Mon, 05 Oct 1998 00:00
41 lines
2417 bytes
On 4 Oct 1998 16:28:07 -0500, tony summerfelt <tonys@myspleen.kos.net> wrote:
> On 4 Oct 1998 16:23:21 GMT, Dawn Owens-Nicholson wrote:
> 
> > I'd recommend using the e-mail address alone or the name alone:
> 
> >       From: davis@space\.mit\.edu
> >       From: John E\. Davis
> 
> at this point it doesn't make any difference because regex's don't work. the
> one's above were `captured' using `k' and then edited afterwards (on a win
> nt machine)
> 
> > Did you tell slrn where your scorefile is in your slrnrc (the "scorefile"
> > command)?
> 
> yes. if i hit `k' to add to the score file, quit and then reenter, the newly
> added item works. as i mentioned in a previous message exact matches work,
> but not regex's. count me as puzzled...
> 
> and to reiterate, if i boot into nt, it all works fine :/

Just a really wild guess. If the exactly same score file works in NT
and does not work in Linux, maybe the problem is the EOL
(end-of-line) character in the files. DOS and Windows use \n\r
whereas Linux uses \n. So maybe Linux tries to match the extra \r
character in the expression and fails.

BTW, most Windows editors will handle plain \n EOL characters just
fine, so try converting the file to the unix convention. That way
the same file should work on both platform.

Oh, one editor that does not work in Windows with plain newlines is
Notepad. So if you plan to use notepad for your Windows score file
editing, you may need to keep two copies around.

-- 
Marko Teittinen (marko@tekamah.com)   | Please don't send me any
Human-Computer Interaction Specialist | spam. My mail filter kills
Tekamah Corporation                   | all incoming ads anyway.

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