🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #44780

Re: slrn: 'hostname' should be a variable

#44780
From: Sylvan Butler
Date: Mon, 23 Nov 1998 00:00
44 lines
2330 bytes
In article <slrn75bsqe.9e5.nagya@valerie.inf.elte.hu>, NAGY Andras wrote:
>Actually here 'hostname' is not a variable but a command, as I can
>see.  My .slrnrc looks like:
>
>hostname "telnet.hu"
>set username "nagya"
>set realname "NAGY Andras"
>
>and it works fine.  Changing 'hostname' to 'set hostname' results
>
>Reading startup file /home/nagya/.slrnrc.slrn fatal error:
>/home/nagya/.slrnrc: Error encountered processing line 14
>set hostname "telnet.hu"

Right.  This is close:

diff -ru slrn-0.9.5.3/src/startup.c slrn/src/startup.c
--- slrn-0.9.5.3/src/startup.c  Sun May  3 14:06:24 1998
+++ slrn/src/startup.c     Tue Sep  8 10:19:31 1998
@@ -436,6 +436,7 @@
      {"username", &Slrn_User_Info.username},
      {"replyto", &Slrn_User_Info.replyto},
      {"organization", &Slrn_User_Info.org},
+     {"posting_host", &Slrn_User_Info.posting_host},
      {"followup", &Slrn_User_Info.followup_string},   /* obsolete */
      {"followup_string", &Slrn_User_Info.followup_string},
      {"reply_string", &Slrn_User_Info.reply_string},


I think you would just need to add:
+     {"hostname", &Slrn_User_Info.hostname},
Following the '+' line above.

But posting_host may do what you want...

sdb
-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1755
 "Don't Tread On Me!"

Technical Details
Message-ID: <slrn75jfn6.v5g.nospam+_no_Zs__9811@hpb13799.zboi.hpz.com>
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: <slrn75b9el.r5p.nagya@valerie.inf.elte.hu> <slrn75bqp4.6rl.alfie@skater.htu.tuwien.ac.at> <slrn75bsqe.9e5.nagya@valerie.inf.elte.hu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn75jfn6.v5g.nospam+_no_Zs__9811@hpb13799.zboi.hpz.com>
Subject: Re: slrn: 'hostname' should be a variable
Date: Mon, 23 Nov 1998 00:00:00 +0000
From: nospam+_no_Zs__9811@hpb13799.zboi.hpz.com (Sylvan Butler)
References: <slrn75b9el.r5p.nagya@valerie.inf.elte.hu> <slrn75bqp4.6rl.alfie@skater.htu.tuwien.ac.at> <slrn75bsqe.9e5.nagya@valerie.inf.elte.hu>
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: 414911592
Mail-Copies-To: never
Organization: Hewlett-Packard
User-Agent: slrn/0.9.5.3 (UNIX)
Newsgroups: news.software.readers