🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #39774

Re: [slrn] changing from line per newsgroup?

#39774
From: Zebee Johnstone
Date: Wed, 25 Mar 1998 00:00
78 lines
3023 bytes
On 23 Mar 1998 07:57:28 GMT, 
Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote:
>On 23 Mar 1998 06:58:07 GMT, Zebee Johnstone
>
>With this version,  you are kind of out of luck.  This was the last
>version of slrn which didn't have extract_article_header function and
>which didn't have realname variable.  Both were introduced in 0.9.1.0.
>The latest version is 0.9.4.6,  which requires s-lang version 1.0 or
>later.  Version 0.9.3.0 (which you used to post your article,  unless
>your X-Newsreader header is wrong) can be compiled with older slang.

OK.. here we are on the slrn I wanted this to work with, and
it's been upgraded:
zipper:~$ slrn --version
Slrn Version: 0.9.4.6 (Mar 25 1998 18:12:46)
S-Lang Library Version: 1.0.3
OS-Type: Unix

slrn compiled with support for:
        character set mapping
        nntp (SLtcp socket code)
        spool
        inews
        slrnpull
        S-Lang Macros

Default server object: nntp
Default posting mechanism: nntp
Supported character sets include:
        ISOLatin
        ibm850
        NeXT
Default character set: isolatin

HEre is a test I made which didn't work:
Path: the-fly.zip.com.au!zebee
From: zebee@zipper.zip.com.au (Zebee Johnstone)
Newsgroups: zip.test
Subject: mmhmm?
Date: 25 Mar 1998 08:53:28 GMT
Organization: Zip Internet Professionals Pty Ltd
Lines: 2
Message-ID: <slrn6hhhju.3to.zebee@zipper.zip.com.au>
NNTP-Posting-Host: 203.12.97.1
X-Newsreader: slrn (0.9.4.6 UNIX)
Xref: the-fly.zip.com.au zip.test:962

And here is my .slrn.sl, which is being loaded according to the slrn
startup

zipper:~$ more .slrn.sl
      define post_hook ()
      {
         variable newsheader = extract_article_header ("Newsgroups:");
         if (is_substr (newsheader, "zip")
            or is_substr (newsheader, "test"))

         {
             set_string_variable ("realname", "Testing");
         }
         else
         {
             set_string_variable ("realname", "Zebee Johnstone");
         }
      }
 define followup_hook ()
      {
         post_hook ();
      }

If I set realname to Testing in .slrnrc, it works.  But the macro
doesn;'t seem to.

Zebee


Technical Details
Message-ID: <slrn6hhkf0.7la.zebee@zipper.zip.com.au>
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!not-for-mail
References: <slrn6hbim4.hqr.zebee@lute.orchestra.cse.unsw.EDU.AU> <slrn6hbodl.1pp.c928400@urdybet.bergsoe.dtu.dk> <slrn6hc01u.4hu.lahvak@math.mps.ohio-state.edu> <slrn6hc1vv.pbp.zebee@lute.orchestra.cse.unsw.EDU.AU> <slrn6hc5f6.56j.lahvak@math.mps.ohio-state.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6hhkf0.7la.zebee@zipper.zip.com.au>
Subject: Re: [slrn] changing from line per newsgroup?
Date: Wed, 25 Mar 1998 00:00:00 +0000
From: zebee@zipper.zip.com.au (Zebee Johnstone)
References: <slrn6hbim4.hqr.zebee@lute.orchestra.cse.unsw.EDU.AU> <slrn6hbodl.1pp.c928400@urdybet.bergsoe.dtu.dk> <slrn6hc01u.4hu.lahvak@math.mps.ohio-state.edu> <slrn6hc1vv.pbp.zebee@lute.orchestra.cse.unsw.EDU.AU> <slrn6hc5f6.56j.lahvak@math.mps.ohio-state.edu>
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!not-for-mail
X-Deja-AN: 337465724
Organization: Zip Internet Professionals Pty Ltd
Newsgroups: news.software.readers