🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #79824

Re: [slrn] Slang Macros question

#79824
From: Albert Koellner
Date: Mon, 04 Jun 2001 14:57
30 lines
1666 bytes
On 04 Jun, Pete Young <pete@antipope.org> wrote:
[...] 
> I want to use different sets of headers depending on whether I am posting
> to an internal set of company newsgroups, or anywhere on usenet.

I use a structure like this:

define article_mode_hook ()
{
   variable signature_file = ".signature";
   variable newsgroup = current_newsgroup ();

   if (orelse
	{ string_match (newsgroup, "^internal\.", 1) }
	{ string_match (newsgroup, "^local\.", 1) }
      )
    	{
	signature_file = ".signature2";
    	}

   if (orelse
	{ string_match (newsgroup, "^local\.test\.moderated", 1) }
      )
    	{
	signature_file = ".signaturemod";
        }

   set_string_variable ("signature", signature_file);
}
Technical Details
Message-ID: <slrn9hn8me.56.crajk@news.myip.org>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newscore.univie.ac.at!aconews.univie.ac.at!news.tu-graz.ac.at!ictas.tu-graz.ac.at!195.34.152.113
References: <slrn9hn3p7.sq4.pete@cornfed.alien.bt.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9hn8me.56.crajk@news.myip.org>
Subject: Re: [slrn] Slang Macros question
Date: Mon, 04 Jun 2001 14:57:18 +0000
From: crajk@cryogen.com (Albert Koellner)
References: <slrn9hn3p7.sq4.pete@cornfed.alien.bt.co.uk>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newscore.univie.ac.at!aconews.univie.ac.at!news.tu-graz.ac.at!ictas.tu-graz.ac.at!195.34.152.113
Newsgroups: news.software.readers
Organization: gato de la noche
X-HipCrime: jerk
User-Agent: slrn/0.9.7.0apl3 (HP48G)
NNTP-Posting-Host: 195.34.152.113
X-Trace: 4 Jun 2001 16:57:18 +0200, 195.34.152.113
Lines: 29
X-Complaints-To: abuse@ictas.tu-graz.ac.at