🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #5043

Re: two .newsrc files ?

#5043
From: Urban Fredriksson
Date: Wed, 10 Nov 1993 10:01
59 lines
2561 bytes
If you want to have two .newsrc files, probably you'll find it
convenient to switch between them depending on what time it is.
If so, you could put something like this into your ~/.nn/init
file:

on `date +%H` 06 18 19 20 21 22 23 
 set newsrc ~/.nn/.newsrc.home
else
 set newsrc ~/.nn/.newsrc.work
end

Personally however, I find it better to have one .newsrc file
and separate sequences. Otherwise I'll see new files twice and
there's a problem with groups that are both "home" and "work".
I used to have a problem with getting .newsrc updated correctly
for cross-posting across the work-home line, but now I've
solved it. And should I wish to read a group on the other side
of the line, I can do so with "nn group.name" at other times.

I've put this into my init file, as I'm quite sure I don't want
to read control, and it's unlikely to ever be empty, so I'll
enter it last in both sequences:

# To get .newsrc updated in spite of groups beeing in different sequences
on entry control
 quit
end

Then, at the end of the init file (the main part with all settings
and macros is the same for both sequences), I've got these statements:

on `date +%H` 06 18 19 20 21 22 23 
 chain init.s
end
on ``  09 12 15
 chain init.l
else
 exit
end
#EOF

The init.home and init.work look something like this:

# $HOME/.nn/init.home		* * * * *
sequence                                      # Begin command; End is EOF
rec.arts.sf. .pets
#
control .  # Only to get .newsrc updated for the groups I don't read here
#EOF

# $HOME/.nn/init.l		* * * * *
sequence                                        # Begin command; End is EOF
>rec.arts.sf. >.pets # In order to get .newsrc updated, these are included here
>control > NEW # control is flag to quit; NEW is last among those I read
#
.risks comp.unix. .nn .news. comp.os. comp.sys.
# EOF
--
 Urban Fredriksson  urf@icl.se 
Technical Details
Message-ID: <urf.752925665@sw2001>
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!howland.reston.ans.net!pipex!sunic!seunet!seunet!news.icl.se!sw2001!urf
References: <2bm1rb$afl@crl.crl.com>

Show Full Headers
Complete Article Headers
Message-ID: <urf.752925665@sw2001>
Subject: Re: two .newsrc files ?
Date: Wed, 10 Nov 1993 10:01:05 GMT
From: urf@icl.se (Urban Fredriksson)
References: <2bm1rb$afl@crl.crl.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!howland.reston.ans.net!pipex!sunic!seunet!seunet!news.icl.se!sw2001!urf
Newsgroups: news.software.nn
Sender: root@icl.se (Root System)
Nntp-Posting-Host: sw2001
Organization: None. I speak only for myself.
Lines: 59