Thread View: news.software.readers
3 messages
3 total messages
Started by Raul Almquist
Thu, 03 Apr 1997 00:00
Looking for a tin expert
Author: Raul Almquist
Date: Thu, 03 Apr 1997 00:00
Date: Thu, 03 Apr 1997 00:00
35 lines
1619 bytes
1619 bytes
I am in need of someone who knows tin real well for some help with tin that is not apparently readily and easily available... shhhhh it's a secret :_) What is needed to be accomplished is this: We have 2 news servers, a public usenet news server and a username/password secured admin news server. The problem is this: we are using the tin package, but, need to be able to allow the admin to utilize both news servers, one at a time based on which one they need to use. Now tin has the ability from what I can see, to utilize different sets of .newsrc and related tin files, as well as the ability to set the nntpserver and nntpserver port as needed, but there is extremely little to go on; as to how to exactly accomplish this ability for actually using 2 different news servers. Then there is the fact that we need to use username:passwording with the admin server via a file called a .newsauth file, and yet nothing states how to utilize this or the formatting of it either. There is a definate lack of info in this regards. Anyone??? Email please. Thanks!
Re: Looking for a tin expert
Author: Mail account for root
Date: Fri, 04 Apr 1997 00:00
Date: Fri, 04 Apr 1997 00:00
59 lines
2502 bytes
2502 bytes
In news.software.nntp Raul Almquist <strider@ShadowMAC.org> wrote: : I am in need of someone who knows tin real well for some help with tin : that is not apparently readily and easily available... shhhhh it's a : secret :_) : What is needed to be accomplished is this: We have 2 news servers, a : public usenet news server and a username/password secured admin news server. : The problem is this: we are using the tin package, but, need to be able : to allow the admin to utilize both news servers, one at a time based on : which one they need to use. : Now tin has the ability from what I can see, to utilize different sets of : .newsrc and related tin files, as well as the ability to set the nntpserver : and : nntpserver port as needed, but there is extremely little to go on; as to : how to exactly accomplish this ability for actually using 2 different news : servers. : Then there is the fact that we need to use username:passwording with the : admin server via a file called a : .newsauth : file, and yet nothing states how to utilize this or the formatting of it either. : There is a definate lack of info in this regards. : Anyone??? : Email please. : Thanks! Create two subdirectories: .tin.normal and .tin.admin. Place the necessary files into these directories (those files that tin normally needs, eg. tinrc). Then create a shell script like this (untested): #!/bin/sh if [ $# eq 0 -o "T$1" = "Tnormal" ] then /bin/rm -f .tin /bin/ln -s .tin.normal .tin else /bin/rm -f .tin /bin/ln -s .tin.admin .tin fi tin exit --______ __ --------------------------------------------------------- ' / '/ ) Thomas Bullinger / /--< This is the mail account for root@btoy1.rochester.ny.us (_/ /___/ http://btoy1-gw.roc.servtech.com/index.phtml
Re: Looking for a tin expert
Author: Richard 'Rick' Hernandez
Date: Tue, 08 Apr 1997 00:00
Date: Tue, 08 Apr 1997 00:00
72 lines
2521 bytes
2521 bytes
Raul Almquist (strider@ShadowMAC.org) wrote:
: I am in need of someone who knows tin real well for some help with tin
: that is not apparently readily and easily available... shhhhh it's a
: secret :_)
: Then there is the fact that we need to use username:passwording with the
: admin server via a file called a
: .newsauth
: file, and yet nothing states how to utilize this or the formatting of it either.
Hi, this is fairly simple, with no 'C' coding necessary. Modify to your
tastes.
Rick.
from open.c
/*
* NNTP user authorization. Password read from ~/.newsauth
* The ~/.newsauth authorization file has the format:
* nntpserver1 password
* nntpserver2 password
* etc.
*/
## A simple script
#!/bin/sh
# This lets the news reader know which news server to connect to.
NNTPSERVER=${NNTPSERVER-news.domain}
export NNTPSERVER
# As the text says, keep the newsrc files from breaking.
DOTTED="$HOME/.`echo $NNTPSERVER | /usr/bin/awk -F. '{print $1}'`"
DOTDIR=${DOTDIR-$DOTTED}
export DOTDIR
if [ ! -d $DOTDIR ]
then
/usr/5bin/echo "This is a shell script called $0, located in /usr/local/bin
You may grab it and modify it to your tastes, it will create a
directory: $DOTDIR to contain a seperate newsrc file to prevent
newsrc corruption. To bring up the new news software press 'y' and
then the return key or just hit the return key to quit."
/usr/5bin/echo "
[return to quit] > \c"
read ans
case $ans in
y|Y)
mkdir $DOTDIR
if [ $? -ne 0 ]
then
echo "Could not make newsrc directory: $DOTDIR"
exit 1
fi
;;
*) exit 0
;;
esac
fi
TIN_HOMEDIR=$DOTDIR
export TIN_HOMEDIR
/usr/local/bin/tin "$@"
--
"I'm paid to have opinions, This isn't one of them." Rick Hernandez
email: rick@pobox.com web: http://www.pobox.com/~rick
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