From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76932 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Making Gnus ask my IMAP username and password after the recent auth-source changes Date: Fri, 18 Feb 2011 14:19:47 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87zkptw0ws.fsf@lifelogs.com> References: <87sjvq127b.fsf@gmail.com> <878vxhmmvj.fsf@lifelogs.com> <87tyg53tju.fsf@gmail.com> <87ipwj4wu8.fsf@lifelogs.com> <87hbc39vwe.fsf@gmail.com> <87d3mqj36i.fsf@lifelogs.com> <87aahu3fwp.fsf@lifelogs.com> <87pqqq8bfk.fsf@gnus.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298060718 6490 80.91.229.12 (18 Feb 2011 20:25:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Feb 2011 20:25:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25269@lists.math.uh.edu Fri Feb 18 21:25:14 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PqWt8-00025Y-8c for ding-account@gmane.org; Fri, 18 Feb 2011 21:25:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PqWt5-00076h-Fc; Fri, 18 Feb 2011 14:25:11 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PqWt3-00076L-Q7 for ding@lists.math.uh.edu; Fri, 18 Feb 2011 14:25:09 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PqWsz-0007jJ-Gp for ding@lists.math.uh.edu; Fri, 18 Feb 2011 14:25:09 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PqWsy-0003Na-Oo for ding@gnus.org; Fri, 18 Feb 2011 21:25:04 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PqWsy-0001zh-Kd for ding@gnus.org; Fri, 18 Feb 2011 21:25:04 +0100 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 ; Fri, 18 Feb 2011 21:25:04 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 21:25:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 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.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:EO/gdOXa2vUnVmQnea8tKqkvS9g= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76932 Archived-At: On Thu, 17 Feb 2011 15:54:07 -0800 Lars Ingebrigtsen wrote: LI> Ted Zlatanov writes: >> The second part is correct: 143 is the first element of the search that >> nnimap.el constructs. We should put "imap" first if that's what we want >> (but Lars should decide the order). I will change auth-source to ask >> when there are multiple candidates. LI> Well, there really are two distinct cases when it comes to querying and LI> creation. LI> When we're querying, we want to query for all the known port numbers. LI> But when we create, we know what port number we want to create, and the LI> user shouldn't be queried at all. LI> In the nnimap case, we want to query 143 993 imaps imap, because all LI> those may be present in the ~/.authinfo file. But when we create, we LI> want it to be imap, because that makes more sense. LI> The old netrc stuff just used the convention of "use the last port LI> number in the query list when creating", but it might be cleaner to have LI> this be an explicit parameter. In any case, the user shouldn't be LI> prompted when creating the credentials. I thought it made sense to allow "no port" as an option, so you have a general entry for that machine. But I guess that's too much hand-holding when the user can just edit their authinfo file. So I'll change it to always take the first element of any lists in the query and nnimap.el will reverse the ports list. The user won't be prompted unless a required parameter is missing from the search query. Ted