[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 37f454f: Use auth-source for passwords in rmail
From: |
Robert Pluim |
Subject: |
Re: master 37f454f: Use auth-source for passwords in rmail |
Date: |
Mon, 07 Sep 2020 18:11:46 +0200 |
>>>>> 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
- Re: master 37f454f: Use auth-source for passwords in rmail,
Robert Pluim <=