🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #6270

Re: nn, save-files, init file

#6270
From: Milt Epstein
Date: Fri, 12 Aug 1994 20:42
51 lines
2884 bytes
tori@netcom.com (Paul Nagai) writes:

>[ Article crossposted from netcom.netnews ]
>[ Author was Paul Nagai ]
>[ Posted on Wed, 10 Aug 1994 19:56:58 GMT ]
>
>I'm trying to lend a hand to someone using nn ... they want to be able to 
>save all articles to one directory instead of the tree 
>structure/directory thing that nn does by default. I think I have it 
>worked out, but I wanted to run it by some nn guru's to make sure I'm not 
>way off base.
>
>1) He should create a file, init, in his .nn directory.
>
>2) In that file, he should place the following commands:
>
>save-files
>  * ~/saved/$L
>  end
>
>Will that tell nn to save any article from any newsgroup to the 
>subdirectory $HOME/saved?

I'm not sure exactly what that will do.  The save-files section of the
init file allows lots of control over where saved articles are placed.
However, if all they want is to save the articles in files in one
subdirectory, there's an easier way.  First of all, the folder
variable controls which subdirectory files are saved to -- the default
is "News", so if that is satisfactory, there's no need to set it at
all.  Secondly, the variable default-save-file controls the format of
the actual saved files.  The default is "+$F" -- the `+' means within
the folder directory (as indicated by the folder variable), and the
"$F" indicates use the newsgroup name with the `.'s changed to
slashes.  This is why you get the hierarchichal structure you mention.
"$G" indicates to use the newsgroup name as is, so if you change this
to "+$G", it sounds like you will get something close to what you
want.  Of course, if you want to have more control over what files
articles are saved to, you can use the save-files section.

In any case, I'm not sure that you want to use $L as you have it above
-- $L expands to the last component of the newsgroup name; there may
be many unrelated groups that share the same last component, and you
probably don't want all those saved to the same file.

Hope this helps.

-- 
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Technical Details
Message-ID: <epstein.776724124@sparc7.cs.uiuc.edu>
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!bga.com!news.sprintlink.net!primenet!netnews.asu.edu !asuvax!gatech!howland.reston.ans.net!vixen.cso.uiuc.edu!sparc7.cs.uiuc.edu!epstein
References: <toriCuFu7n.H9A@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <epstein.776724124@sparc7.cs.uiuc.edu>
Subject: Re: nn, save-files, init file
Date: Fri, 12 Aug 1994 20:42:04 +0000
From: epstein@sparc7.cs.uiuc.edu (Milt Epstein)
References: <toriCuFu7n.H9A@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.nn.mbox.zip!bga.com!news.sprintlink.net!primenet!netnews.asu.edu  !asuvax!gatech!howland.reston.ans.net!vixen.cso.uiuc.edu!sparc7.cs.uiuc.edu!epstein
Newsgroups: news.software.nn
Organization: University of Illinois at Urbana
Lines: 51
Reply-To: epstein@cs.uiuc.edu
NNTP-Posting-Host: sparc7.cs.uiuc.edu