From: Leo Butler <leo.butler@umanitoba.ca>
To: info-gnus-english@gnu.org
Subject: Re: removing authinfo data from a running emacs
Date: Fri, 22 Apr 2022 08:38:50 -0500 [thread overview]
Message-ID: <87ee1pme51.fsf@t14.reltub.ca> (raw)
In-Reply-To: <87levynrc1.fsf@zoho.eu> (Emanuel Berg via Announcements and discussions for GNUS's message of "Thu, 21 Apr 2022 21:56:14 +0200")
"Emanuel Berg via Announcements and discussions for GNUS, the GNU Emacs
Usenet newsreader (in English)" <info-gnus-english@gnu.org> writes:
> Leo Butler wrote:
>
>> Periodically, I need to edit my .authinfo.gpg and have gnus
>> pick up the changes. I do this by killing emacs and starting
>> a new session.
>>
>> Surely, there is a smarter way to do this! Can someone
>> enlighten me, please?
>
> (auth-source-pick-first-password :host "smtp.machines.eu")
Thank you, both.
For reference, after editing and saving .authinfo.gpg, the following
worked for me:
(auth-source-forget-all-cached)
(auth-source-pick-first-password :host "smtp.example.com")
IIUC, the first command flushes the password-data for .authinfo.gpg, so
the next call to `auth-source-search' causes a re-reading of
.authinfo.gpg (as happens in the second line).
Leo
next prev parent reply other threads:[~2022-04-22 13:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 18:53 Leo Butler
2022-04-21 19:45 ` Jose A. Ortega Ruiz
2022-04-21 19:56 ` Emanuel Berg via Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
2022-04-22 13:38 ` Leo Butler [this message]
2022-04-22 14:18 ` Emanuel Berg via Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
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=87ee1pme51.fsf@t14.reltub.ca \
--to=leo.butler@umanitoba.ca \
--cc=info-gnus-english@gnu.org \
/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.
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 NNTP newsgroup(s).