🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Mark Bergman Thu, 15 Jul 1993 07:58
[t]rn macro/kill questions
#4936
Author: Mark Bergman
Date: Thu, 15 Jul 1993 07:58
40 lines
1908 bytes
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.

Is there any way to put the current article number or current subject
into a macro? Any way to return to a specific article from within a
macro? I'm using a macro while reading an article, to kill all
precceding articles and search for the next article with the same
subject:

	Z ?.?j\nP^N

[Junk everything previous, go to the previously read article, do a
subject search]. The problem is in the case where there are killed
articles:

KILLED=>	10 Windows-NT is the greatest
KILLED=>	11 Re: Windows-NT is the greatest
		12 Unix is Best
KILLED=>	13 Re: Windows-NT is the greatest
KILLED=>	14 Re: Windows-NT is the greatest
		15 Re: Unix is Best
		16 Windows Stinks
KILLED=>	17 Re: Windows-NT is the greatest
		18 Up With VMS
KILLED=>	19 Re: Windows-NT is the greatest

For example, if I'm on article #12 (Unix is Best) and I execute the Z
macro, the search is made on the subject "Windows-NT is the greatest".

----
Mark Bergman    Biker, IATSE #1 Stagehand, (former) Unix user support grunt
718-855-9148

bergman@panix.com
{cmcl2,uunet}!panix!bergman
Re: [t]rn macro/kill questions
#4949
Author: Wayne Davison
Date: Thu, 15 Jul 1993 17:37
22 lines
1398 bytes
According to Mark Bergman <bergman@panix.com>:
> Is there any way to instruct [t]rn to ignore case when
> processing KILL files?

This is the default.  You have to specify the c option (like /NeXT/c)
to match case.

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

See the section on "Interpretation and Interpolation" in the manpage.
You'll find %a (current article number) %s (current subject) and a host
of other expansions.

> Any way to return to a specific article from within a
> macro? [...]  Z ?.?j\nP^N

In your macro the article number does not change during the execution of
the ?.?j command, so I'm not sure what article you wish to get back to.
If the last article you read prior to this one, use '-'.

.wayne..
Re: [t]rn macro/kill questions
#4963
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads