🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #80758

Re: [slrn] how to get the current newsgroup name into a variable

#80758
From: Thomas Schultz
Date: Sat, 23 Jun 2001 18:27
22 lines
1699 bytes
* Stephen Patterson [2001-06-23 14:17] :

> I use a2ps to print news postings. There's a parameter I can set when
> invoking a2ps (--left-header=) to print some user defined text in the
> page header. Is there any way I can get hold of the name of the
> current newsgroup into a variable which can then be passed into a2ps?

You might want to use something like this (untested):

#v+
public define pipe_to_a2ps ()
{
  variable command = "a2ps --left-header=" + current_newsgroup ();
  pipe_article (command);
}
#v-
-- 
Thomas Schultz <tststs@gmx.de> * Recent news from http://slrn.sourceforge.net/
 -> [2001-06-06] slrn 0.9.7.1 released
 -> [2001-04-19] Full documentation online
 -> [2001-03-28] slrn 0.9.7.0 released
Technical Details
Message-ID: <slrn9j9nt2.q4e.tststs@starflower.tststs.ddns.org>
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.tele.dk!194.213.69.151!news.algonet.se!algonet!f.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mail
References: <slrn9j991u.14u.spam@localhost.localdomain>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9j9nt2.q4e.tststs@starflower.tststs.ddns.org>
Subject: Re: [slrn] how to get the current newsgroup name into a variable
Date: Sat, 23 Jun 2001 18:27:46 +0000
From: tststs@gmx.de (Thomas Schultz)
References: <slrn9j991u.14u.spam@localhost.localdomain>
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.tele.dk!194.213.69.151!news.algonet.se!algonet!f.de.uu.net!innmaster.de.uu.net!news.cityweb.de!tststs.ddns.org!not-for-mail
Newsgroups: news.software.readers
Organization: Pinguin online.
Lines: 21
NNTP-Posting-Host: 149.225.24.26
NNTP-Posting-Date: 23 Jun 2001 18:34:30 GMT
X-Complaints-To: abuse@cityweb.de
X-Server-Date: 23 Jun 2001 18:30:22 GMT
User-Agent: slrn/0.9.7.1 (Linux)