🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #8537

Re: Strn questions

#8537
From: John Line
Date: Sat, 16 Apr 1994 10:19
86 lines
5194 bytes
In article <tsalagiCoAHyp.1n5@netcom.com>,  <tsalagi@netcom.com> wrote:
>1.  Is there a FAQ for strn yet?  If so, does it answer the following
>questions, and where is it?

I don't know... don't remembering seeing one.

>2. What's the name of the organization file for strn?  I've tried
>~/organization, ~/strn/organization, ~/.organization, ~/strn/.organization,
>and Organization in both directories, as well as trying an environment
>variable (setenv ORGANIZATION='witty saying'...).  Darn fool thing just
>won't listen.  (I have it set as a macro in my comm program for now... what
>a pain).

As with trn and rn before it, it all depends on your answers to the questions
asked by the Configure script.

(a) You can enter a fixed text string as the default, or a filename (any
filename, as long as it's a complete path starting with "/").

(b) You are asked whether [[s]t]rn should ignore the ORGANIZATION environment
variable, as some systems use that name for other purposes. Setting the
environment variable NEWSORG should work even if ORGANIZATION is ignored.

If you don't know how strn was configured (you didn't do it, or didn't use
script to record the Configure dialogue and can't remember...), you could try
running the "strings" command on the strn binary - that will list all the
word-like strings of text in the file, and you may be able to spot either a
file name mentioning organization, or the text for whatever hard-wired string
may have been specified - matching what you get when you post.

>3.  How can I get strn to stop the following two prompts, which I will never
>use?:
>Are you absolutely sure that you want to do this? [ny] y
>Prepared file to include [none]:

Hey... I've been getting irritated by that, but never got around to
investigating. It doesn't seem to be mentioned in the [s]trn man page for Pnews
(the script that's run to handle posting), but reading the code shows that
if the FAST_PNEWS environment variable is set to y (or anything beginning with
y), it skips both those prompts and just drops you straight into the editor.
(It assumes that if you want to insert a file, you'll know how to do it using
the editor.)

Thanks for making me look at Pnews - I'll be setting that variable in future!

>4.  How do I save multi-part uuencoded files?  I've been able to save and
>decode single-part files, but that's all.

Don't know.

>5.  Does anyone have a pointer to a sample kill file?  I've managed to get
>that annoying Green Card posting into my kill file, but now I have to see
>the header every time I enter a newsgroup while strn does it's business.

Yes, it's a pain... [s]trn -f or [s]trn -t may help (try it). You'll still see
the killfile commands being processed, but without some of the explicit delays.
-f just kills the delays etc., -t makes prompting more terse in general.

>6.  Is there any way around strn's habit of creating dozens of directories
>for the kill files?  It's eating up disk space like crazy, all for the sole
>purpose of killing one posting globally.  There must be a way to avoid all
>those directories.

Create a global kill file, if you just want to zap something regardless of
group. control-K (edit global killfile) will do that, as long as your default
editor will create a a new file without special options; alternatively, do it
manually. You need a file called KILL in your News save directory, containing
the same sort of commands as you've got in the individual group killfiles.
Also, see the section in the man page for the KILLGLOBAL and KILLLOCAL
environment variables - you can customise the choice of directory and filename.

>Thanks if you've read this far.  I've read the trn manual, but couldn't find
>these answers in there.

It's mostly there, but I'd never noticed a lot of it! Running man and searching
for references to likely words may be quicker and more reliable (as long as you
guess the right words) than reading from end-to-end (man trn is big...). For
example, I already knew about global killfiles, but found the environment
variables for changing the names by searching for kill and KILL in the man
page.

                                John Line
-- 
John Line - Cambridge University Computing Service, Computer Laboratory,
            New Museums Site, Pembroke Street, Cambridge CB2 3QG, ENGLAND.
Internet: jml4@cus.cam.ac.uk  JANET: jml4@uk.ac.cam.cus  Phone: +44 223 334708
Technical Details
Message-ID: <2ooe32$1vt@lyra.csx.cam.ac.uk>
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!newsserver.jvnc.net!yale.edu!yale!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!pipex!lyra.csx.cam.ac.uk!jml4
References: <tsalagiCoAHyp.1n5@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <2ooe32$1vt@lyra.csx.cam.ac.uk>
Subject: Re: Strn questions
Date: Sat, 16 Apr 1994 10:19:14 +0000
From: jml4@cus.cam.ac.uk (John Line)
References: <tsalagiCoAHyp.1n5@netcom.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!newsserver.jvnc.net!yale.edu!yale!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gatech!howland.reston.ans.net!pipex!lyra.csx.cam.ac.uk!jml4
Newsgroups: news.software.readers
Organization: Computing Service, Cambridge University, England
Lines: 86
NNTP-Posting-Host: grus.cus.cam.ac.uk