🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4963

Re: [t]rn macro/kill questions

#4963
From: Bruce Lilly
Date: Fri, 16 Jul 1993 10:39
28 lines
1633 bytes
In article <2232n7$ppe@panix.com>,
 posted to newsgroup(s) news.software.readers,
 bergman@panix.com (Mark Bergman) wrote:
>Is there any way to instruct [t]rn to ignore case when
>processing KILL files? I've currently got lines that look
>like:
>
>	/[Ww][Ii][Nn][Dd][Oo][Ww][Ss]-[Nn][Tt]/j
>
>to cover all possible cases of "Windows-NT". Yuck.

By default, comparisons are case-insensitive. So you could use
	/windows-nt/j
If you specifically want a case-sensitive comparison, you need to use the
'c' flag as in
	/Foo/cj
which will match Foo but not foo, fOO, FOO, ...

>Is there any way to put the current article number or current subject
>into a macro?

%a is the current article number (i.e. the last component of the file name
in the news spool, which is specific to your site). %[subject] is the
subject with the "Subject: " stripped from the header. %S also strips one
"Re:" (if present). %s strips all "Re:"s.

-- 
	Bruce Lilly		...uupsi!monymsys!sonyd1!blilly!bruce
Technical Details
Message-ID: <CA96xy.KvE@blilly.uucp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!Germany.EU.net!mcsun!uunet!psinntp!monymsys!sonyd1.broadcast.sony.com!blilly.uucp!bruce
References: <2232n7$ppe@panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <CA96xy.KvE@blilly.uucp>
Subject: Re: [t]rn macro/kill questions
Date: Fri, 16 Jul 1993 10:39:26 +0000
From: bruce@blilly.uucp (Bruce Lilly)
References: <2232n7$ppe@panix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!Germany.EU.net!mcsun!uunet!psinntp!monymsys!sonyd1.broadcast.sony.com!blilly.uucp!bruce
Newsgroups: news.software.readers
Organization: Bruce Lilly
Reply-To: lilb@sony.compuserve.com
Lines: 28