Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* removing authinfo data from a running emacs
@ 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)
  0 siblings, 2 replies; 5+ messages in thread
From: Leo Butler @ 2022-04-21 18:53 UTC (permalink / raw)
  To: info-gnus-english

Hello,

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?

TIA,
Leo




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: removing authinfo data from a running emacs
  2022-04-21 18:53 removing authinfo data from a running emacs 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)
  1 sibling, 0 replies; 5+ messages in thread
From: Jose A. Ortega Ruiz @ 2022-04-21 19:45 UTC (permalink / raw)
  To: Leo Butler; +Cc: info-gnus-english

On Thu, Apr 21 2022, Leo Butler wrote:

> Hello,
>
> 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?

i think M-x auth-source-forget-all-cached is what you're looking for?

cheers,
jao
-- 
Freedom has many powerful enemies and I can't have confidence in [an
organization] to stand up to enemies like nation states and global corps
if it can't even stand up to a rabid twitter mob and a bunch of agenda
driven journalists spreading lies and misrepresentations. -- Catallaxy


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: removing authinfo data from a running emacs
  2022-04-21 18:53 removing authinfo data from a running emacs 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
  1 sibling, 1 reply; 5+ messages in thread
From: Emanuel Berg via Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English) @ 2022-04-21 19:56 UTC (permalink / raw)
  To: info-gnus-english

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

-- 
underground experts united
https://dataswamp.org/~incal



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: removing authinfo data from a running emacs
  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
  2022-04-22 14:18     ` Emanuel Berg via Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Butler @ 2022-04-22 13:38 UTC (permalink / raw)
  To: info-gnus-english

"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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: removing authinfo data from a running emacs
  2022-04-22 13:38   ` Leo Butler
@ 2022-04-22 14:18     ` Emanuel Berg via Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
  0 siblings, 0 replies; 5+ messages in thread
From: Emanuel Berg via Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English) @ 2022-04-22 14:18 UTC (permalink / raw)
  To: info-gnus-english

Leo Butler wrote:

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

Np :)

> For reference, after editing and saving .authinfo.gpg, the
> following worked for me [...]

+1

-- 
underground experts united
https://dataswamp.org/~incal



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-22 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-21 18:53 removing authinfo data from a running emacs 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
2022-04-22 14:18     ` Emanuel Berg via Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)

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