all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: larsi@gnus.org (Lars Ingebrigtsen)
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:11:46 +0200	[thread overview]
Message-ID: <m2k0x5y3b1.fsf@gmail.com> (raw)
In-Reply-To: <20200907155915.C8BBA204F0@vcs0.savannah.gnu.org> (Lars Ingebrigtsen's message of "Mon, 7 Sep 2020 11:59:15 -0400 (EDT)")

>>>>> 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



       reply	other threads:[~2020-09-07 16:11 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   ` Robert Pluim [this message]
2020-09-07 16:21     ` master 37f454f: Use auth-source for passwords in rmail Lars Ingebrigtsen

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=m2k0x5y3b1.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.