Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!ukc!stl!dww
From: dww@stl.stc.co.uk (David Wright)
Newsgroups: news.newusers.questions
Subject: Re: List of subjects in an already read group
Summary: Some macros
Message-ID: <2234@stl.stc.co.uk>
Date: 30 Sep 89 13:28:37 GMT
References: <1802@draken.nada.kth.se>
Sender: news@stl.stc.co.uk
Reply-To: "David Wright" 
Organization: STC Technology Limited, London Road, Harlow, Essex, UK
Lines: 41

In article <1802@draken.nada.kth.se> ianf@nada.kth.se (Ian Feldman) writes:
#  I require a quick method of peeking at subject lines of an already
#  read group...
#  Now's the chance for the real rn-macro-killers among you to prove
#  your salt's worth   ;-)

I don't qualify, but having long ago asked the same question to a local
expert (thanks Andrew) here are the three macros I use, the first of which
solves your problem.   Put these three lines in file  .rnmac in your 
login directory and enjoy:

~ $/./r:=
@1 |mail -s "%s" %L
@2 |print\n


The first is to list all articles in a group;  like = but ~ will list
ones you've read too.    You can then pick the one you want by typing 
its number.

@1  simply mails the article to yourself, puting the article Subject (%s) as
the mail Subject.

@2  feeds the article to the program  print
In my case this is the following 2-liner, which uses enscript to print
'two-up' on my local Postscript printer   (yes, I could have put the
enscript command into the macro, but I had 'print' anyway).

#!/bin/sh
/usr/local/enscript -P alw4 -2r -G $*


@1 and @2 may not be useful to you, but I include them as examples of how to
write simple macros.   If you read the full    man rn   you will see what
other strings can be invoked as %.

--
Regards,    David Wright       STL, London Road, Harlow, Essex  CM17 9NA, UK
dww@stl.stc.co.uk  ...uunet!mcvax!ukc!stl!dww  PSI%234237100122::DWW
Living in a country without a written constitution means having to trust in
the Good Will of the Government and the Generosity of Civil Servants.