🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Pete Young Tue, 01 Feb 2000 00:00
slrn - help with macros
#57639
Author: Pete Young
Date: Tue, 01 Feb 2000 00:00
28 lines
1529 bytes
Dear slrn gurus,

I'm trying to write a macro which will let me put a different set of
headers into postings to internal newsgroups, and I've come up against
a problem with 'hostname' . 

In my old .slrnrc I had a line

hostname "alien.bt.co.uk" 

(to prevent individual machine names escaping)

which means it cant be set in a macro with set_string_variable()
and hence will always appear in a From: line.

Is there any way around this if I want the From: line to appear
differently depending on which group I'm posting in?

Regards

Pete

-- 
  ____________________________________________________________________
  Pete Young          pete@alien.bt.co.uk        Phone +44 1473 642740
      "Just another crouton, floating on the bouillabaisse of life"

Re: slrn - help with macros
#57611
Author: Sylvan Butler
Date: Tue, 01 Feb 2000 00:00
31 lines
2170 bytes
On 1 Feb 2000 16:59:58 GMT, Pete Young <pete@alien.bt.co.uk> wrote:
>I'm trying to write a macro which will let me put a different set of
>headers into postings to internal newsgroups, and I've come up against
>a problem with 'hostname' . 

In slrn 0.9.5.5 hostname became settable.  I use the following:
        set_string_variable ("hostname",host);

I also use the following patch to allow the same re. posting_host:

--- slrn/src/startup.c  Sun May 16 23:27:02 1999
+++ slrn-mine/src/startup.c Mon May 17 13:38:13 1999
@@ -453,6 +453,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},


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, 1759
 "Don't Tread On Me!"

Re: slrn - help with macros
#57618
Author: Thomas Schultz
Date: Tue, 01 Feb 2000 00:00
21 lines
1466 bytes
On 01 February 2000 at 16:59 GMT, Pete Young <pete@alien.bt.co.uk> wrote:

> In my old .slrnrc I had a line
> hostname "alien.bt.co.uk" 
> (to prevent individual machine names escaping)
> which means it cant be set in a macro with set_string_variable() and
> hence will always appear in a From: line.

Since version 0.9.5.5, you can treat "hostname" like any other string
variable. This includes the possibility to set it via
set_string_variable().

> Is there any way around this if I want the From: line to appear
> differently depending on which group I'm posting in?

You also might want to look at make_from_string_hook, which (if
defined) will be called to generate `From' header lines.
-- 
Thomas Schultz <tststs@gmx.de>

Re: slrn - help with macros
#57658
Author: Pete Young
Date: Wed, 02 Feb 2000 00:00
27 lines
1651 bytes
Thomas Schultz <tststs@gmx.de> :

>Since version 0.9.5.5, you can treat "hostname" like any other string
>variable. This includes the possibility to set it via
>set_string_variable().

Ah. I was testing my macros on a machine running 0.9.5.4 and that
explains why it didn't work. Good reason to upgrade.

>You also might want to look at make_from_string_hook, which (if
>defined) will be called to generate `From' header lines.

I'll check that out too.

Many thanks to Thomas and Sylvan for the prompt and helpful replies.

Regards

Pete


-- 
  ____________________________________________________________________
  Pete Young          pete@alien.bt.co.uk        Phone +44 1473 642740
      "Just another crouton, floating on the bouillabaisse of life"

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