From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: nnimap-user setting?
Date: Tue, 19 Apr 2011 08:05:18 -0500 [thread overview]
Message-ID: <878vv6ie7l.fsf@lifelogs.com> (raw)
In-Reply-To: jwvbp03js38.fsf-monnier+emacs@gnu.org
On Mon, 18 Apr 2011 16:12:45 -0300 Stefan Monnier <monnier@iro.umontreal.ca> wrote:
SM> Doesn't sound right: what if you have several accounts on the same
SM> IMAP server? auto-info needs to know the username in order to find the
SM> right password.
>>>> In Gnus, you'd set up multiple secondary servers with the same machine
>>>> address and each one has its own nnimap-user.
SM> That's one way to do it, but not the only way. The user may only want
SM> one of the accounts in his list of secondary servers.
>> Can you give a specific example of what you mean and how it should work?
>> I may be missing your point.
SM> The autoinfo file has data for toto@foo.bar and titi@foo.bar, and the
SM> user wants to setup his .gnus to connect to titi@foo.bar and nothing
SM> else (maybe he has another .gnus elsewhere configured to only connect
SM> to toto@foo.bar).
I see.
>> You always put `:user nnimap-user' in the `auth-source-search' spec.
>> That means that a line like "machine x password y" won't work if
>> `nnimap-user' is set. It's not annoying, just
>> unnecessarily restrictive.
SM> I'd expect a ":user nil" argument to work just like when there's
SM> no :user keyword argument, so as long as the user doesn't set
SM> nnimap-user the behavior should stay unchanged.
You're right.
>> Also if the `nnimap-user' is set it should override anything else coming
>> from `auth-source-search'. I think your patch allows it to be
>> overridden.
SM> I'm not sure what you mean here. If I specify ":host foo.bar :user
SM> titi" I would expect auto-source to ignore an entry for toto@foo.bar.
SM> So either auto-source works differently than what I expect or you're
SM> talking about another case of override.
s/auto-source/auth-source/g :)
Your patch is correct. I was thinking incorrectly about the :user nil
search case, which will DTRT as you said. Sorry for
the... interjection.
Ted
next prev parent reply other threads:[~2011-04-19 13:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 17:22 nnimap-user setting? Stefan Monnier
2011-04-14 15:05 ` Ted Zlatanov
2011-04-15 19:52 ` Stefan Monnier
2011-04-15 20:31 ` Ted Zlatanov
2011-04-16 15:14 ` Stefan Monnier
2011-04-16 15:27 ` Ted Zlatanov
2011-04-18 19:12 ` Stefan Monnier
2011-04-19 13:05 ` Ted Zlatanov [this message]
2011-04-19 13:46 ` Stefan Monnier
2011-04-22 0:38 ` Ted Zlatanov
2011-04-22 13:14 ` 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
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=878vv6ie7l.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=emacs-devel@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.
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).