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: Sat, 16 Apr 2011 10:27:51 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87fwpinrm0.fsf@lifelogs.com> References: <87zkns98l8.fsf@lifelogs.com> <87y63bdzny.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302967694 19759 80.91.229.12 (16 Apr 2011 15:28:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 16 Apr 2011 15:28:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 16 17:28:11 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 1QB7Pr-0002cw-SW for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2011 17:28:08 +0200 Original-Received: from localhost ([::1]:55432 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB7Pr-0004Bo-5j for ged-emacs-devel@m.gmane.org; Sat, 16 Apr 2011 11:28:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB7Po-00049v-K3 for emacs-devel@gnu.org; Sat, 16 Apr 2011 11:28:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QB7Pn-0008EQ-SV for emacs-devel@gnu.org; Sat, 16 Apr 2011 11:28:04 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:45063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QB7Pn-0008ED-MQ for emacs-devel@gnu.org; Sat, 16 Apr 2011 11:28:03 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QB7Pl-0002ZL-G9 for emacs-devel@gnu.org; Sat, 16 Apr 2011 17:28:01 +0200 Original-Received: from c-67-186-102-106.hsd1.il.comcast.net ([67.186.102.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Apr 2011 17:28:01 +0200 Original-Received: from tzz by c-67-186-102-106.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Apr 2011 17:28:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-186-102-106.hsd1.il.comcast.net 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:5jdiLQogSLO3w3t6HbOKFNam2hQ= 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:138519 Archived-At: On Sat, 16 Apr 2011 12:14:17 -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. >> But what bugged you is the auth-source prompting for the user name, right? SM> Partly, but I don't understand what annoys you in the patch I sent. Two potential problems with your patch: 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. 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. Ted