From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: nnimap-user setting? Date: Mon, 18 Apr 2011 16:12:45 -0300 Message-ID: References: <87zkns98l8.fsf@lifelogs.com> <87y63bdzny.fsf@lifelogs.com> <87fwpinrm0.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303153980 21608 80.91.229.12 (18 Apr 2011 19:13:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2011 19:13:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 18 21:12:56 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QBtsT-0003fR-Ut for ged-emacs-devel@m.gmane.org; Mon, 18 Apr 2011 21:12:54 +0200 Original-Received: from localhost ([::1]:45431 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBtsT-00075M-62 for ged-emacs-devel@m.gmane.org; Mon, 18 Apr 2011 15:12:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBtsQ-00075E-LW for emacs-devel@gnu.org; Mon, 18 Apr 2011 15:12:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBtsP-0004I2-Pl for emacs-devel@gnu.org; Mon, 18 Apr 2011 15:12:50 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBtsP-0004Hy-OG for emacs-devel@gnu.org; Mon, 18 Apr 2011 15:12:49 -0400 Original-Received: from 213-159-126-200.fibertel.com.ar ([200.126.159.213]:56036 helo=ceviche.home) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QBtsP-0005Cb-4b; Mon, 18 Apr 2011 15:12:49 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 0400A664E8; Mon, 18 Apr 2011 16:12:46 -0300 (ART) In-Reply-To: <87fwpinrm0.fsf@lifelogs.com> (Ted Zlatanov's message of "Sat, 16 Apr 2011 10:27:51 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:138565 Archived-At: 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