Article View: news.software.readers
Article #253043Re: [tin] -Z option
From: John F. Morse
Date: Sat, 29 Dec 2012 21:00
Date: Sat, 29 Dec 2012 21:00
112 lines
5736 bytes
5736 bytes
Hi Urs,
On 12/29/2012 11:13 AM, Urs JanΓen wrote:
> In <kbmsbj$1ap$1@n102.xanadu-bbs.net>, John F. Morse wrote: days, but now that all ther
>> Apparently when using the -Z option, along with the -A option,
>> something is sent to the server after entering the username,
>> which in interpreted as an incorrect password.
> -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).
We worked on a forced authinfo problem with INN a couple of years ago, and you
provided a patch with the new code that was to be provided in an upcoming
version. When I upgraded it worked.
Then on 20110624 we exchanged messages about the automation of the login. That
was fixed when I moved the .newsauth from ~/.tin to ~/ and hope none of my
other programs will mess with it.
As I stated then:
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
what else. Can't keep them straight.
My attempt was to put each newsreaders' run control and other associated
files within a directory bearing that program's name.
My reasoning is I access several NSP servers to check if certain missing
articles are available, and then I check the Path information. This requires
seeing these articles as new, and not already read and possibly hidden because
a shared newsrc was used by another program.
Hard disk space is very cheap today, so there is not much reason to share the
newsrc, except for the majority of users who are only interested in reading.
Such a user would then probably only use one newsreader.
An example is the Pan newsreader which was a fairly good tool back in the
version 0.14.2.91, where each configured NSP account was unique and
individual. The access was better than the present beta releases, but all
articles are still stored in one area. Since only one article per M-ID is
stored, you cannot examine individual articles to see how the Path shows the
propagation.
Then in Message-ID: <iu2kad$f7v$1@news2.rz.uni-karlsruhe.de> you suggested:
tin(1)
TIN_HOMEDIR Define this variable if you do not want the .tin directory in
$HOME/. E.g., if you want all tin's private files in /tmp/.tin you would
set $TIN_HOMEDIR to /tmp.
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.
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.
john@noc:~/.tin$ rtin -rZv
Reading config file...
tin 2.1.1 release 20120623 ("Mulindry") [UNIX] (c) Copyright 1991-2012 Iain Lea.
Connecting to news2...
newsw.my.net InterNetNews NNRP server INN 2.5.2 ready (no posting)
Reading global attributes file...
Reading attributes file...
Reading groups from active file...
Reading groups from newsrc file...
Processing attributes...
Reading filter file...
Reading newsrc file...
Checking for news...There is no news
newsrc file saved successfully.
Disconnecting from server...
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.
Please correct me if I'm wrong.
> This fixes the username prompting:
>
> --- src/auth.c 2012-12-24 11:22:00.000000000 +0100
> +++ src/auth.c 2012-12-29 18:09:46.273302968 +0100
> @@ -313,6 +313,10 @@
> * that the server doesn't want a password; so only ask for it if needed.
> */
> if (force_auth_on_conn_open || !startup) {
> + if (batch_mode) { /* no interactive username/password prompting */
> + error_message(0, _(txt_auth_needed));
> + return (ret == OK_AUTH);
> + }
> if (nntp_caps.type != CAPABILITIES || (nntp_caps.type == CAPABILITIES && !nntp_caps.authinfo_state && ((nntp_caps.sasl & SASL_PLAIN) || nntp_caps.authinfo_user || (!nntp_caps.authinfo_user && !(nntp_caps.sasl & SASL_PLAIN))))) {
> # ifdef USE_CURSES
> int state = RawState();
--
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:
<kbnlku$849$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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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-mailReferences:
<kbmsbj$1ap$1@n102.xanadu-bbs.net> <kbn8ce$he6$1@news.rz.uni-karlsruhe.de>Show Full Headers
Complete Article Headers
Message-ID: <kbnlku$849$1@n102.xanadu-bbs.net> Subject: Re: [tin] -Z option Date: Sat, 29 Dec 2012 15:00:14 -0600 From: "John F. Morse" <john@example.invalid> References: <kbmsbj$1ap$1@n102.xanadu-bbs.net> <kbn8ce$he6$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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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: 112 Reply-To: dont.bother NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sat, 29 Dec 2012 21:00:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; In-Reply-To: <kbn8ce$he6$1@news.rz.uni-karlsruhe.de> X-Enigmail-Version: 1.4