From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse)
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Re: improving SMTP credential caching
Date: Sun, 24 Mar 2013 15:39:35 +0000 [thread overview]
Message-ID: <87ip4gq020.fsf@riseup.net> (raw)
In-Reply-To: 87k3ozgo7k.fsf@pobox.com
Hi Tom,
Tom Roche <Tom_Roche-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> writes:
> ...I would prefer either
>
> + to make emacs (or dependency) *not* cache failed credentials
>
> + to force reauthentication (e.g., via `C-u C-c C-c`)
>
> + something else short of restarting or waiting
>
> How to do?
>
> TIA, Tom Roche <Tom_Roche-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
The dependency implicated here is the Emacs auth-source library, which
handles credential caching for smtpmail and many other bits of Emacs.
Any of these would eliminate your problem and hopefully make using
auth-source more pleasant:
+ Best: Run Emacs under gpg-agent and using an encrypted auth-source
file (e.g. ~/.authinfo.gpg) that includes your email account
passwords. Then caching is guaranteed only to happen when you entered
the GPG passphrase correctly, and expiry will be controlled through
the gpg-agent, by setting the --max-cache-ttl option.
+ Manual and irksome: Invoke M-x auth-source-forget-all-cached after you
flub an SMTP password. Or, possibly, find something in smtpmail's
error handling to which to hook this function.
+ Worst and most inconvenient: Disable password caching entirely.
(setq auth-source-do-cache nil)
Hope this helps,
Will
--
BOFH excuse #4:
static from nylon underwear
next prev parent reply other threads:[~2013-03-24 15:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-22 20:43 improving SMTP credential caching Tom Roche
2013-03-24 15:39 ` W. Greenhouse [this message]
2013-03-25 18:33 ` Stefan Monnier
[not found] ` <mailman.22817.1364236429.855.help-gnu-emacs@gnu.org>
2013-03-27 13:22 ` Ted Zlatanov
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=87ip4gq020.fsf@riseup.net \
--to=wgreenhouse-sgozh3hwpm2stnjn9+bgxg@public.gmane.org \
--cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.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.
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.