* Re: master 37f454f: Use auth-source for passwords in rmail
[not found] ` <20200907155915.C8BBA204F0@vcs0.savannah.gnu.org>
@ 2020-09-07 16:11 ` Robert Pluim
2020-09-07 16:21 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Robert Pluim @ 2020-09-07 16:11 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Viktor Slavkovikj, emacs-devel
>>>>> On Mon, 7 Sep 2020 11:59:15 -0400 (EDT), larsi@gnus.org (Lars Ingebrigtsen) said:
Lars> (if (not rmail-remote-password)
Lars> - (setq rmail-remote-password
Lars> - (read-passwd (if imap
Lars> - "IMAP password: "
Lars> - "POP password: "))))
Lars> + (setq rmail-remote-password
Lars> + (let ((found (nth 0 (auth-source-search
Lars> + :max 1 :user user :host host
Lars> + :require '(:secret)))))
auth-source-search has a :create argument that would let you get rid
of the 'read-passwd' stuff (the prompts go in
'auth-source-creation-prompts')
Robert
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: master 37f454f: Use auth-source for passwords in rmail
2020-09-07 16:11 ` master 37f454f: Use auth-source for passwords in rmail Robert Pluim
@ 2020-09-07 16:21 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-07 16:21 UTC (permalink / raw)
To: Robert Pluim; +Cc: Viktor Slavkovikj, emacs-devel
Robert Pluim <rpluim@gmail.com> writes:
>>>>>> On Mon, 7 Sep 2020 11:59:15 -0400 (EDT), larsi@gnus.org (Lars
> Ingebrigtsen) said:
>
> Lars> (if (not rmail-remote-password)
> Lars> - (setq rmail-remote-password
> Lars> - (read-passwd (if imap
> Lars> - "IMAP password: "
> Lars> - "POP password: "))))
> Lars> + (setq rmail-remote-password
> Lars> + (let ((found (nth 0 (auth-source-search
> Lars> + :max 1 :user user :host host
> Lars> + :require '(:secret)))))
>
> auth-source-search has a :create argument that would let you get rid
> of the 'read-passwd' stuff (the prompts go in
> 'auth-source-creation-prompts')
Makes sense, but I don't use rmail, so I thought it was safer just to
apply the tested patch.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-07 16:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20200907155914.20925.23422@vcs0.savannah.gnu.org>
[not found] ` <20200907155915.C8BBA204F0@vcs0.savannah.gnu.org>
2020-09-07 16:11 ` master 37f454f: Use auth-source for passwords in rmail Robert Pluim
2020-09-07 16:21 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).