From: Ted Zlatanov <tzz@lifelogs.com>
To: Richard Riley <rileyrg@googlemail.com>
Cc: Ding Mailing List <ding@gnus.org>
Subject: Re: auth-source-search
Date: Wed, 9 Mar 2011 11:38:32 -0600 [thread overview]
Message-ID: <877hc8p52f.fsf@lifelogs.com> (raw)
In-Reply-To: <14vczs2spa.fsf@news.eternal-september.org> (Richard Riley's message of "Wed, 09 Mar 2011 16:56:33 +0100")
(Richard, I'd prefer keeping the discussion on the list. I hope that's
OK with you.)
On Wed, 09 Mar 2011 16:56:33 +0100 Richard Riley <rileyrg@googlemail.com> wrote:
RR> Ted Zlatanov <tzz@lifelogs.com> writes:
RR> If not already done, How about an auth-get-password function?
I'm OK with naming it `auth-source-pick-first-password' but just
`auth-get-password' is misleading.
RR> it makes it so much clearer and easier for third party apps to use
RR> without having to understand the rather complex API to
RR> auth-search. e.g I would then use it to get my erc, identica,
RR> bitblbee etc passwords from a single .authinfo.gpg.
...
RR> (auth-get-password "orgmobile") for example where the corresponding
RR> .authinfo line is
RR> ,----
RR> | machine orgmobile login rgr password mypassword
RR> `----
I'd rather not make it a host lookup only so you can say
(auth-source-pick-first-password :host "orgmobile" :user rgr) as well.
So you'll have to use
(auth-source-pick-first-password :host "orgmobile") which I think is
just as simple and IMHO better in every way because it's clear what the
parameters mean. So, with a bug fix on the function parameters, I
committed it.
Ted
next prev parent reply other threads:[~2011-03-09 17:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-03 16:11 auth-source-search Richard Riley
2011-03-03 20:00 ` auth-source-search Richard Riley
2011-03-03 22:14 ` auth-source-search Ted Zlatanov
2011-03-04 10:10 ` auth-source-search Richard Riley
2011-03-04 14:55 ` auth-source-search Ted Zlatanov
2011-03-05 10:21 ` auth-source-search Lars Magne Ingebrigtsen
2011-03-07 17:44 ` auth-source-search Ted Zlatanov
2011-03-09 15:39 ` auth-source-search Ted Zlatanov
[not found] ` <14vczs2spa.fsf@news.eternal-september.org>
2011-03-09 17:38 ` Ted Zlatanov [this message]
2011-03-15 16:41 ` auth-source-search Lars Magne Ingebrigtsen
2011-03-09 15:35 ` auth-source-search 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=877hc8p52f.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=ding@gnus.org \
--cc=rileyrg@googlemail.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).