Article View: news.software.readers
Article #32479Re: Looking for a tin expert
From: 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
Technical Details
Message-ID:
<5idouu$o65@rap.SanDiegoCA.NCR.COM>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<strider-ya02408000R0304971841020001@news.winternet.com>Show Full Headers
Complete Article Headers
Message-ID: <5idouu$o65@rap.SanDiegoCA.NCR.COM> Subject: Re: Looking for a tin expert Date: Tue, 08 Apr 1997 00:00:00 +0000 From: rick@sparc.SanDiegoCA.NCR.COM (Richard 'Rick' Hernandez) References: <strider-ya02408000R0304971841020001@news.winternet.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 231715163 Distribution: inet Followup-To: news.software.nntp,news.software.readers Organization: NCR Corporation, San Diego, CA Reply-To: rick@pobox.com Newsgroups: news.software.nntp,news.software.readers