🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by Paul Nagai Fri, 12 Aug 1994 19:59
nn, save-files, init file
#6269
Author: Paul Nagai
Date: Fri, 12 Aug 1994 19:59
31 lines
1572 bytes
[ 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?

Thanks.
------
Paul Nagai:  tori@netcom.com
47 Galleries, Galleries On-Line

--
------
Paul Nagai:  tori@netcom.com
Go Online, Internet Tutoring/Training
47 Galleries, Galleries On-Line
Re: nn, save-files, init file
#6270
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads