🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #5418

Re: Q: How to find out numbers of selected articles?

#5418
From: Nancy McGough
Date: Tue, 08 Feb 1994 08:35
24 lines
1758 bytes
raoul@eawag.ch (Raoul Schaffner) writes:
>I need to find out the filenames (numbers) of the selected messages at
>a given time. My first shot was:
>
>o  Select the messages
>o  Jump to next group with N (this updates ~/.nn/select)
>o  Parse ~/.nn/select for selected messages w/ an external script
>
>Unluckily, ~/.nn/select does not contain the filenames, but the range of
>the messages. Do you know where to lookup the numbers of the selected
>messages? I need to feed them to a sh script that gets invoked by !<cmd>

If you put ``a'' in your header-lines setting the full path of the
article will show up in your header, e.g.:

set header-lines aFOnW*Y

Also you should be able to send <spool-path>/$F/$N to your script.
If you just want to pipe the article to a script you can use |script
and don't even have to mess with the actual filename.  See 
FILE NAME EXPANSION in the man pages.

Good luck,
Nancy
Technical Details
Message-ID: <2j7it6$k20@nwfocus.wa.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.nn.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cyber2.cyberstore.ca!nwnexus!nancym
References: <raoul-020294175051@macrs31.emp-eaw.ch>

Show Full Headers
Complete Article Headers
Message-ID: <2j7it6$k20@nwfocus.wa.com>
Subject: Re: Q: How to find out numbers of selected articles?
Date: Tue, 08 Feb 1994 08:35:50 +0000
From: Nancy McGough <nancym@ii.com>
References: <raoul-020294175051@macrs31.emp-eaw.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!sol.ctr.columbia.edu!math.ohio-state.edu!cyber2.cyberstore.ca!nwnexus!nancym
Newsgroups: news.software.nn
Organization: Infinite Ink, Seattle, Washington, USA
Lines: 25
Sender: news@nwfocus.wa.com
Reply-To: Nancy McGough <nancym@ii.com>
NNTP-Posting-Host: nwfocus.wa.com
X-Newsreader: NN [version 6.4.18]
Originator: nancym@chinook.halcyon.com