Gnus development mailing list
 help / color / mirror / Atom feed
From: Chris Brierley <brierley@pobox.com>
Subject: Re: .authinfo support broken in Gnus 5.8.5?
Date: 25 Apr 2000 11:16:15 -0400	[thread overview]
Message-ID: <wk1z3ucitc.fsf@pobox.com> (raw)
In-Reply-To: Shenghuo ZHU's message of "24 Apr 2000 21:14:38 -0400"

On 2000-04-24, Shenghuo ZHU <zsh@cs.rochester.edu> wrote:

> Fixed in the latest CVS version. Please test.

Well, it is fixed, but the behavior is still a little weird, IMO.
How do I explain this.

It seems to me that the purpose of the change to
gnus-netrc-machine to add a port parameter was to allow multiple
entries in .authinfo for the same machine but a different servers
(i.e. nntp or imap).

If you *do not* specify a port when you call gnus-netrc-machine it
will prefer the first entry from .authinfo which matches the
machine and *either* has no port specified or port nntp specified.
That is, regardless of whether there is no port or "port nntp",
the first machine that matches in the file will be returned.  This
works fine if you specify your NNTP server with "port nntp" and
your IMAP server with no port information.

However, if you specify your IMAP server in .authinfo *with* "port
imap" (in fact, if you specify any port info other than nntp)
gnus-netrc-machine called without a port parameter will never find
it.  It will prefer an entry with no port information, or port
nntp, and if it can't find those it will return nil.

This is all probably fine in terms of the way this new
functionality is intended for use.  The problem here is that
nnimap.el does not currently call gnus-netrc-machine with a port
parameter.  So, if your .authinfo looks something like this:

,-----
| machine personal login foobar port imap
| machine personal login wubba port nntp
`-----

... the entry for IMAP will never be used in the current version
of Gnus.

This is all a bit funky.  Perhaps the best fix is to change
nnimap.el to specify a port when it uses gnus-netrc-machine.
However, that would *require* users to specify port information
for any server other than nntp, as an entry with no port
information will not be returned by:

  (gnus-netrc-machine list machine "imap")

Maybe it would be better for the function to only bring port
information into play *only* if there is more than one entry which
matches the machine.  Backends would be required to call
gnus-netrc-machine with port information in case there was a
collision in the file, but users wouldn't be required to specify
the port information unless they had two entries for the same
host.

Make sense?




  parent reply	other threads:[~2000-04-25 15:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-24 19:50 Steve Harris
2000-04-24 21:06 ` Chris Brierley
2000-04-25  1:14   ` Shenghuo ZHU
2000-04-25 14:11     ` Chris Brierley
2000-04-25 14:49       ` Kai Großjohann
2000-04-25 15:27         ` CVS diff (Was: Re: .authinfo support broken in Gnus 5.8.5?) Pavel Janík ml.
2000-04-25 15:54           ` Kai Großjohann
2000-04-25 16:15             ` Ted Stern
2000-04-25 15:16     ` Chris Brierley [this message]
2000-04-25 11:15   ` .authinfo support broken in Gnus 5.8.5? Kai Großjohann
2000-04-25 14:06     ` Chris Brierley
2000-04-25 14:50       ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wk1z3ucitc.fsf@pobox.com \
    --to=brierley@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).