all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: emacs-devel@gnu.org
Subject: Re: nnimap-user setting?
Date: Mon, 18 Apr 2011 16:12:45 -0300	[thread overview]
Message-ID: <jwvbp03js38.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87fwpinrm0.fsf@lifelogs.com> (Ted Zlatanov's message of "Sat, 16 Apr 2011 10:27:51 -0500")

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.

The autoinfo file has data for toto@foo.bar and titi@foo.bar, and the
user wants to setup his .gnus to connect to titi@foo.bar and nothing
else (maybe he has another .gnus elsewhere configured to only connect
to toto@foo.bar).

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

I'd expect a ":user nil" argument to work just like when there's
no :user keyword argument, so as long as the user doesn't set
nnimap-user the behavior should stay unchanged.

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

I'm not sure what you mean here.  If I specify ":host foo.bar :user
titi" I would expect auto-source to ignore an entry for toto@foo.bar.
So either auto-source works differently than what I expect or you're
talking about another case of override.


        Stefan



  reply	other threads:[~2011-04-18 19:12 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 [this message]
2011-04-19 13:05             ` Ted Zlatanov
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvbp03js38.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=tzz@lifelogs.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.