🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #253047

Re: [tin] -Z option

#253047
From: John F. Morse
Date: Sun, 30 Dec 2012 07:24
120 lines
5807 bytes
On 12/29/2012 05:48 PM, Urs Janßen wrote:
> In <kbnlku$849$1@n102.xanadu-bbs.net>, John F. Morse wrote:
>>> -Z is a "batch mode" option, you must provide the username /
>>> password via ${TIN_HOMEDIR:-"$HOME"}/.newsauth - there is no
>>> intercative usage.
>> The ~/.newsauth file is formatted correctly as shown in tin(5).
> if that's the case tin wouldn't promt for a username/password.


That is an erroneous statement, Urs. The file IS formatted correctly, but
located in the wrong location, so Tin could not find it.


>>    My concern was or is the ~/ directory gets loaded down with various run
>>    control (i.e. newsrc etc.) files from tin, slrn, nn, Pan, and who knows
> the newsrc has standard format and can be shared among several
> readers, thus it's default location is in $HOME and not in a reader
> specific dir. if you don't like that you can use
> ${TIN_HOME‐DIR:-"$HOME"}/.tin/newsrctable to gave an alternate
> location (even on a per server basis), i.e.:
>
> *       ~/.tin/${NNTPSERVER:-localhost}
>
> newsauth is also ment to be shareable among other programms...


I have heard that many times, but I guess you don't understand that I am NOT
STANDARD!

I have a specific use for a newsreader other than gabbing. I use them as tools
for news server administration. Is that an issue?

When something is compiled into a newsreader, and that binary code is part of
a distro's package system, then I'm at the mercy of modifying the source and
recompiling.

I believe there should be enough freedom in a program's design so a user can
make changes easily, with a text editor.


>> I do not remember if I had done this on my recently failed motherboard
>> computer or not. I tried it on this new system, and it didn't work. The
>> .newsauth file must be in the ~/ directory.
> homedir is set early in tin here:
>
> init.c:init_selfinfo()
> [...]
>    if (((ptr = getenv("TIN_HOMEDIR")) != NULL) && strlen(ptr)) {
>         my_strncpy(homedir, ptr, sizeof(homedir) - 1);
>     } else if (((ptr = getenv("HOME")) != NULL) && strlen(ptr)) {
>         my_strncpy(homedir, ptr, sizeof(homedir) - 1);
>     } else if (strlen(myentry->pw_dir)) {
>         strncpy(homedir, myentry->pw_dir, sizeof(homedir) - 1);
>     } else
>         strncpy(homedir, TMPDIR, sizeof(homedir) - 1);
> [...]
>
> and used later on here:
>
> auth.c:read_newsauth_file()
> [...]
>     joinpath(filename, sizeof(filename), homedir, ".newsauth");
> [...]
>
> settig TIN_HOMEDIR to someting else than $HOME also works for
> .newsauth, but if you set to i.e. $HOME/.tin/ you'll have all the other
> configs in $HOME/.tin/.tin (that's the way TIN_HOMEDIR always worked)!


Sorry but I do not speak C (nor C++). I can barely fumble my way around in
BASH and Perl.

Why is the homedir etched into stone? Why is it not in one of the
configuration files like many other programs?

You are essentially forcing people to toe the line as you see it.


>> Back to when using the -Z option, without the -A option, Tin is reporting
>> "There is no news" however there is a lot of unread news in several newsgroups
>> on the server.
> If tin is not allowed to issue a GROUP/LISTGROUP command it can't
> know if threre is any unread news.


If the news server does not allow Tin access to groups that require
authentication, then Tin needs some changes in order to authenticate.


>> I don't think the following patch is necessary because INN2 doesn't prompt for
>> a login. The client must force it, which it does in the -A option mode.
> the patch surpresses the prompting if -A is used in batch mode (or
> the server requires auth) _and_ no valid password/username pair is
> found in newsauth.
>
> urs


Well, it is broke, so suppressing something that isn't accepted in the first
place makes no sense.

Have you even tried to reproduce my problem on a news server that does require
authentication?

Please do so before wasting any more of our time.

This is the same behavior you exhibited in earlier bug reports.

Just use Tin on Eternal-September, Albasani, or some other close-by NSP that
is free to use.

Don't believe me; believe your own eyes.


-- 
John

When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <kboq81$h8p$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed101.telia.com!starscream.dk.telia.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail
References: <kbmsbj$1ap$1@n102.xanadu-bbs.net> <kbn8ce$he6$1@news.rz.uni-karlsruhe.de> <kbnlku$849$1@n102.xanadu-bbs.net> <kbnvgo$qg5$1@news.rz.uni-karlsruhe.de>

Show Full Headers
Complete Article Headers
Message-ID: <kboq81$h8p$1@n102.xanadu-bbs.net>
Subject: Re: [tin] -Z option
Date: Sun, 30 Dec 2012 01:24:49 -0600
From: "John F. Morse" <john@example.invalid>
References: <kbmsbj$1ap$1@n102.xanadu-bbs.net> <kbn8ce$he6$1@news.rz.uni-karlsruhe.de> <kbnlku$849$1@n102.xanadu-bbs.net> <kbnvgo$qg5$1@news.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed101.telia.com!starscream.dk.telia.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Xanadu BBS
Lines: 120
Reply-To: dont.bother
NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Sun, 30 Dec 2012 07:24:49 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
In-Reply-To: <kbnvgo$qg5$1@news.rz.uni-karlsruhe.de>
X-Enigmail-Version: 1.4
X-Original-Bytes: 5580