emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 37f454f: Use auth-source for passwords in rmail


From: Lars Ingebrigtsen
Subject: Re: master 37f454f: Use auth-source for passwords in rmail
Date: Mon, 07 Sep 2020 18:21:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]