unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: Viktor Slavkovikj <zhtvk@gmx.com>, emacs-devel@gnu.org
Subject: Re: master 37f454f: Use auth-source for passwords in rmail
Date: Mon, 07 Sep 2020 18:21:23 +0200	[thread overview]
Message-ID: <871rjd7e2k.fsf@gnus.org> (raw)
In-Reply-To: <m2k0x5y3b1.fsf@gmail.com> (Robert Pluim's message of "Mon, 07 Sep 2020 18:11:46 +0200")

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	other threads:[~2020-09-07 16:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rjd7e2k.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=rpluim@gmail.com \
    --cc=zhtvk@gmx.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.
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).