From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76901 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Making Gnus ask my IMAP username and password after the recent auth-source changes Date: Thu, 17 Feb 2011 15:54:07 -0800 Organization: Programmerer Ingebrigtsen Message-ID: <87pqqq8bfk.fsf@gnus.org> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297987534 544 80.91.229.12 (18 Feb 2011 00:05:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Feb 2011 00:05:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25239@lists.math.uh.edu Fri Feb 18 01:05:30 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 1PqDqj-0001z0-Jg for ding-account@gmane.org; Fri, 18 Feb 2011 01:05:29 +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 1PqDqd-0001Md-Ny; Thu, 17 Feb 2011 18:05:23 -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 1PqDqc-0001MF-4M for ding@lists.math.uh.edu; Thu, 17 Feb 2011 18:05:22 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PqDqO-0003lk-Ij for ding@lists.math.uh.edu; Thu, 17 Feb 2011 18:05:21 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PqDqM-0006KU-Vs for ding@gnus.org; Fri, 18 Feb 2011 01:05:06 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PqDqL-0001eL-HH for ding@gnus.org; Fri, 18 Feb 2011 01:05:05 +0100 Original-Received: from baybryj.net ([198.144.208.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 01:05:05 +0100 Original-Received: from larsi by baybryj.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Feb 2011 01:05:05 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 26 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: baybryj.net Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:yPhnAmlIrme7vGQSExiQoieHet8= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76901 Archived-At: 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. Well, there really are two distinct cases when it comes to querying and creation. When we're querying, we want to query for all the known port numbers. But when we create, we know what port number we want to create, and the user shouldn't be queried at all. In the nnimap case, we want to query 143 993 imaps imap, because all those may be present in the ~/.authinfo file. But when we create, we want it to be imap, because that makes more sense. The old netrc stuff just used the convention of "use the last port number in the query list when creating", but it might be cleaner to have this be an explicit parameter. In any case, the user shouldn't be prompted when creating the credentials. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen