Article View: news.software.readers
Article #46500Re: slrn - several signatures possible?
From: Dawn Owens-Nicholson
Date: Sun, 14 Feb 1999 00:00
Date: Sun, 14 Feb 1999 00:00
56 lines
2768 bytes
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!
Technical Details
Message-ID:
<slrn7ccer0.qtj.bluemoon@ux6.cso.uiuc.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-mailReferences:
<slrn7canpj.kr4.Udo@k6.udo.burghardt.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn7ccer0.qtj.bluemoon@ux6.cso.uiuc.edu> Subject: Re: slrn - several signatures possible? Date: Sun, 14 Feb 1999 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <slrn7canpj.kr4.Udo@k6.udo.burghardt.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 X-Deja-AN: 444155935 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.4 (UNIX) Newsgroups: news.software.readers