🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Udo Burghardt Sat, 13 Feb 1999 00:00
slrn - several signatures possible?
#46480
Author: Udo Burghardt
Date: Sat, 13 Feb 1999 00:00
12 lines
1064 bytes
Hi there

I would like to have different (but static) signatures for different 
newsgroups. 
I am *not* familiar with slang... What is the easiest way to do this? 

Any hints appreciated, thanks.

-- 
Udo Burghardt 

Re: slrn - several signatures possible?
#46497
Author: Udo Burghardt
Date: Sun, 14 Feb 1999 00:00
11 lines
1152 bytes
On 14 Feb 1999 02:56:33 GMT, Dawn Owens-Nicholson wrote in <slrn7ccer0.qtj.bluemoon@ux6.cso.uiuc.edu>:

>(3) There is an S-Lang solution too, [...] 

That was the solution I was looking for. Thanks. 

-- 



Re: slrn - several signatures possible?
#46500
Author: Dawn Owens-Nicholson
Date: Sun, 14 Feb 1999 00:00
56 lines
2768 bytes
Udo Burghardt wrote:
> I would like to have different (but static) signatures for different
> newsgroups. I am *not* familiar with slang... What is the easiest way to do
> this?

I can think of three ways to do what you want to do.

(1) Set slrn's signature variable (in your slrnrc) to the signature you use
    more commonly and edit in the other signature as needed.  This requires
    no knowledge of S-Lang (or slrn, for that matter).  Unfortunately, for
    those times you want the other signature, it's a hassle.

(2) If these newsgroups are on different servers, you could put this in your
    slrnrc:

      set signature .sig2
      #ifdef SIG1
      set signature .sig1
      #endif

    and run slrn for server 1 as "slrn -DSIG1", slrn for server 2 as "slrn".
    Make sure the signatures are in files called ".sig1" and ".sig2", of
    course.

(3) There is an S-Lang solution too, but it doesn't require you to know
    anything about S-Lang.  Without knowing what newsgroups you want to use
    a special signature for, it's hard to help, but here's a try--Put the
    following 11 lines in a file called "my_signature.sl" in your homedir.

       define my_signature ()
       {
          if (current_newsgroup () == "news.software.readers")
	    set_string_variable ("signature", make_home_filename (".sig1"));
	  else set_string_variable ("signature", make_home_filename (".sig1"));
       }

       define group_mode_hook ()
       {
          my_signature ();
       }

    and put the following line in your slrnrc:

       interpret "my_signature.sl"

    then restart slrn.  As above, make sure the two signatures are in files
    ".sig1" and ".sig2" and make sure the one you want to use most of the
    time is in ".sig2".  I think the my_signature function is clear enough
    that you can change the name of the group to something else.  If you
    decide to go this route and you find other things breaking, let me know
    (I don't want to clutter the issue by over-explaining what could be
    causing the trouble).

Happy newsreading!

Re: slrn - several signatures possible?
#46529
Author: Udo Burghardt
Date: Sun, 14 Feb 1999 00:00
12 lines
1164 bytes
On Sat, 13 Feb 1999 11:17:07 +0000, Udo Burghardt wrote in <slrn7canpj.kr4.Udo@k6.udo.burghardt.com>:

>I would like to have different (but static) signatures for different 
>newsgroups. 

Already solved - by an email of a kind person :-)

-- 
Udo Burghardt


Re: slrn - several signatures possible?
#46528
Author: Heikki Kantola
Date: Mon, 15 Feb 1999 00:00
38 lines
2009 bytes
Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> informed
news.software.readers with the following:
>Udo Burghardt wrote:
>> I would like to have different (but static) signatures for different
>> newsgroups. I am *not* familiar with slang... What is the easiest way to do
>> this?
[...]
>(2) If these newsgroups are on different servers, you could put this in your
>    slrnrc:
>
>      set signature .sig2
>      #ifdef SIG1
>      set signature .sig1
>      #endif
>
>    and run slrn for server 1 as "slrn -DSIG1", slrn for server 2 as "slrn".
>    Make sure the signatures are in files called ".sig1" and ".sig2", of
>    course.

Actually if setting variable based on news server, I would suggest to
use NNTPSERVER enviroment variable as critea on preprocessor directives
like this:

 #if$NNTPSERVER news.foo.bar
 set signature .foo
 #else
 set signature .signature
 #endif

That would save the effort to set those defines on command line.
 
-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

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