Article View: news.software.readers
Article #79820[slrn] Slang Macros question
From: Pete Young
Date: Mon, 04 Jun 2001 13:47
Date: Mon, 04 Jun 2001 13:47
44 lines
2199 bytes
2199 bytes
Greetings. I have a problem with an slang macro which no amount of
documentation reading seems to cure.
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. Assuming
an internal news spool that has things like:
ourco.test
ourco.misc
ourco.travel
ourco.comp.sys.sun
I have the following kind of thing in my slang macros:
define post_hook()
{
if (is_substr (current_newsgroup (), "ourco"))
{
set_string_variable ("username", "Pete.Young");
set_string_variable ("signature", ".signature");
}
else
{
set_string_variable ("username", "pete");
set_string_variable ("signature", ".signature.antipope");
}
}
Trouble is, my postings to ourco.test are showing up with the wrong
headers: the 'else' branch is always being executed (there are no
defaults in .slrnrc or the macros file ). It looks like the if statement
is always evaluating to false.
Any suggestions welcomed.
Kind regards
Pete
--
____________________________________________________________________
Pete Young pete@antipope.org
"Just another crouton, floating on the bouillabaisse of life"
Technical Details
Message-ID:
<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!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!bt !peteShow Full Headers
Complete Article Headers
Message-ID: <slrn9hn3p7.sq4.pete@cornfed.alien.bt.co.uk> Subject: [slrn] Slang Macros question Date: Mon, 04 Jun 2001 13:47:58 +0000 From: pete@antipope.org (Pete Young) 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!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!bt !pete Newsgroups: news.software.readers Organization: No fixed abode Lines: 43 Reply-To: pete@antipope.org NNTP-Posting-Host: 132.146.172.160 X-Trace: pheidippides.axion.bt.co.uk 991662478 23975 132.146.172.160 (4 Jun 2001 13:47:58 GMT) X-Complaints-To: postmaster@axion.bt.co.uk NNTP-Posting-Date: 4 Jun 2001 13:47:58 GMT User-Agent: slrn/0.9.5.7 (UNIX)