From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: nnimap-user setting? Date: Tue, 19 Apr 2011 08:05:18 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <878vv6ie7l.fsf@lifelogs.com> 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 1303218347 24268 80.91.229.12 (19 Apr 2011 13:05:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2011 13:05:47 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 19 15:05:43 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 1QCAcg-0000bD-3Q for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2011 15:05:42 +0200 Original-Received: from localhost ([::1]:45393 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCAcf-0002t0-J1 for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2011 09:05:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCAcY-0002sd-Vb for emacs-devel@gnu.org; Tue, 19 Apr 2011 09:05:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCAcU-0004ux-H6 for emacs-devel@gnu.org; Tue, 19 Apr 2011 09:05:34 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:34441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCAcU-0004uh-7U for emacs-devel@gnu.org; Tue, 19 Apr 2011 09:05:30 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QCAcS-0000Rv-S1 for emacs-devel@gnu.org; Tue, 19 Apr 2011 15:05:28 +0200 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Apr 2011 15:05:28 +0200 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Apr 2011 15:05:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:jbQcbHK8rr+jEwoNZoD2x44xq1w= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:138572 Archived-At: On Mon, 18 Apr 2011 16:12:45 -0300 Stefan Monnier 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