Page 1 of 1

How to use more than one news server with trn

Posted: Tue Jul 17, 2012 9:49 pm
by hexapuma
With a little bit of setup it's possible to use trn with more than one news server and have separate newsrc files for each server or even multiple newsrc files for each server. You change from one server/file to the next with ctrl-N and ctrl-P in trn.

Here's my ~/.trn/access file.

Code: Select all

[local]
NNTP Server = nnrp-virt.nntp.sonic.net

[test]
NNTP Server = nnrp-virt.nntp.sonic.net

[remote]
NNTP Server = news.eternal-september.org
Auth User = eternalseptemberusername
Auth Password = eternalseptemberpassword
Force Auth = yes

[Group 1]
ID = local
Newsrc = ~/.newsrc
Add Groups = manual

[Group 2]
ID = test
Newsrc = ~/.newsrc2
Add Groups = manual

[Group 3]
ID = remote
Newsrc = ~/.newsrc3
Add Groups = manual
This defines three groups, two using the sonic server with different newsrcs, and one using the eternal-september server.

To get started, create ~/.trn/access and make sure all your newsrc files exist (they can start out empty). You don't have to change the NNTPSERVER environment variable. It will get overridden by trn.

I'm paranoid about file permissions, so I have ~/.trn set to 1700 and all the files in it set to 600.

You can read read about other access options here.

http://fossies.org/unix/misc/old/trn-4. ... les/access

trn will start up in group 1. Pressing ctrl-N will advance to the next group.

Re: How to use more than one news server with trn

Posted: Wed Jul 18, 2012 5:17 pm
by klui
People still use trn? No, just kidding--big fan of trn, rn, news, ... in my younger days.