๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #73444

Re: slrn signatures

#73444
From: Martijn van Buul
Date: Mon, 12 Mar 2001 13:00
56 lines
2612 bytes
It occurred to me that S๏ฟฝren Boll Overgaard wrote in news.software.readers:
> Hello
> 
> I'm trying to figure out if slrn supports multiple signatures, selected on a
> per group basis. Ie. will I be able to append different signatures,
> depending on the group in which I am posting?

You can do that with a macro; I do the same thing with my attributes and
my From: / Reply-To: address. Maybe this gives you an indication how
it could be done (Warning: untested!):

Store this in a file somewhere, and 'inherit' it from your .slrnrc

variable Default_signature;
variable sig_no = 4;		% Number of different signatures
variable sig_regexes= ["nl\..*", "news\..*", "comp\..*", 
			"news.\software\.readers"];
				% Regular expressions for every signature
variable sig_sigfiles = [
     ".sigdutch",
     ".signews",
     ".sigcomp",
     ".signsr" 
     ];
				% signature-files belonging to the regexes above

Default_signature= get_variable_value("signature");

define pick_signature(groupname)
{
    variable i,a,b;
    a=Default_signature;     
    for(i=0; i < sig_no; i++)
    {
        b = string_match(groupname, sig_regexes[i],1);
	if(b == 1)
	{
            a=sig_signatures[i];
	    break;
	}
    }
    set_string_variable("signature",a);
}

define article_mode_hook ()
{
   variable g;
   g=current_newsgroup();
   pick_signature(g);
}

-- 
    Martijn van Buul -  Pino@dohd.org - http://www.stack.nl/~martijnb/
	 Geek code: G--  - Visit OuterSpace: mud.stack.nl 3333
   Kees J. Bot: The sum of CPU power and user brain power is a constant.
Technical Details
Message-ID: <slrn9api3v.irt.pino+news_software_readers@mud.stack.nl>
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!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsgate.cistron.nl!news2.euro.net!newsfeed.iae.nl!news.tue.nl!pino+news_software_readers
References: <slrn9apf7u.8o1.boll@bilbo.tolkien.dk>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9api3v.irt.pino+news_software_readers@mud.stack.nl>
Subject: Re: slrn signatures
Date: Mon, 12 Mar 2001 13:00:48 +0000
From: pino+news_software_readers@dohd.org (Martijn van Buul)
References: <slrn9apf7u.8o1.boll@bilbo.tolkien.dk>
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!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsgate.cistron.nl!news2.euro.net!newsfeed.iae.nl!news.tue.nl!pino+news_software_readers
Newsgroups: news.software.readers
Organization: Eindhoven University of Technology
Lines: 55
Reply-To: pino+news_software_readers@dohd.org (Martijn van Buul)
NNTP-Posting-Host: mud.stack.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Religion: mutt vim slrn C64 Fort Apocalypse
User-Agent: slrn/0.9.6.3 (Linux)