Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: auth-sources: 8 password prompts for accessing one single imap server
Date: Mon, 27 Sep 2010 18:54:23 +0200	[thread overview]
Message-ID: <m3vd5rp1og.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <87ocbkujwr.fsf@thinkpad.tsdh.de>

Tassilo Horn <tassilo@member.fsf.org> writes:

> As you can see, 1) it queries for a password for each possible imap port
> or port name.  And 2), for each of those, I have to type my password 2
> times.

Ah, I get it.  I mean, it loops over the different port combinations,
and it gets both user name and password.  And the reason you get
prompted so many times is that it all ends up being queried from
netrc.el, which is very simple: You ask it for a user name and a
password, based on a machine/port specification.

So to avoid all these queries, we'd have to bypass auth-sources
altogether, or have netrc.el cache the data.

Or alter auth-sources so that it takes a list of ports to scan, and
calls netrc-credentials with that list.

I think the latter makes more sense.

Will it break any other packages if I alter the function signatures in
auth-sources.el to take a list of ports?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




  parent reply	other threads:[~2010-09-27 16:54 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-27  0:09 Tassilo Horn
2010-09-27  6:38 ` Vegard Vesterheim
2010-09-27  7:59   ` Drew Hess
2011-02-25 22:19     ` Ted Zlatanov
2010-09-27 16:49   ` Lars Magne Ingebrigtsen
2010-09-27 17:13     ` Vegard Vesterheim
2010-09-27 17:21       ` Lars Magne Ingebrigtsen
2010-09-27 20:50         ` Tassilo Horn
2010-09-27 20:57           ` Lars Magne Ingebrigtsen
2010-09-30  6:30             ` Tassilo Horn
2010-09-30 15:44               ` Ted Zlatanov
2010-10-05  7:16                 ` Tassilo Horn
2010-10-06  7:20                   ` "epa (Caching Passphrases)" Daiki Ueno
2010-10-06 12:22                     ` Ted Zlatanov
2010-10-06 12:38                       ` Daiki Ueno
2010-10-06 12:52                         ` Ted Zlatanov
2010-10-06 13:25                           ` Daiki Ueno
2010-10-07 19:38                             ` Lars Magne Ingebrigtsen
2010-10-08 15:38                             ` Ted Zlatanov
2010-09-27 21:01           ` auth-sources: 8 password prompts for accessing one single imap server Ted Zlatanov
2010-09-27 21:42             ` Tassilo Horn
2010-09-28  7:25             ` Gijs Hillenius
2010-09-28 10:19               ` Lars Magne Ingebrigtsen
2010-09-28 10:32                 ` Gijs Hillenius
2010-09-28 12:04                   ` Dave Goldberg
2010-09-28 13:10                     ` Gijs Hillenius
2010-09-28 13:42                       ` Gijs Hillenius
2010-09-27 16:54 ` Lars Magne Ingebrigtsen [this message]
2010-09-27 18:37   ` Ted Zlatanov
2010-09-27 18:48     ` Lars Magne Ingebrigtsen
2010-09-27 18:52       ` Ted Zlatanov

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=m3vd5rp1og.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    /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).