From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76876 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: Thu, 17 Feb 2011 08:16:22 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87aahu3fwp.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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1297952230 24055 80.91.229.12 (17 Feb 2011 14:17:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 14:17:10 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25214@lists.math.uh.edu Thu Feb 17 15:17:06 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 1Pq4fJ-0005yF-CM for ding-account@gmane.org; Thu, 17 Feb 2011 15:17:05 +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 1Pq4es-0006aU-9g; Thu, 17 Feb 2011 08:16:38 -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 1Pq4eq-0006aB-4V for ding@lists.math.uh.edu; Thu, 17 Feb 2011 08:16:36 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Pq4eo-0001QG-V1 for ding@lists.math.uh.edu; Thu, 17 Feb 2011 08:16:36 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Pq4eo-0003vb-7K for ding@gnus.org; Thu, 17 Feb 2011 15:16:34 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pq4en-0005a7-Kw for ding@gnus.org; Thu, 17 Feb 2011 15:16:33 +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 ; Thu, 17 Feb 2011 15:16:33 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 17 Feb 2011 15:16:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 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:4PzzOeGlVxVtDICBNFGZyzgeZ1s= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76876 Archived-At: On Thu, 17 Feb 2011 11:34:43 -0200 Raphael Kubo da Costa wrote: RKdC> Ted Zlatanov wrote: >> On Thu, 17 Feb 2011 01:34:25 -0200 Raphael Kubo da Costa RKdC> I am still wondering if the prompts I get are better than the old RKdC> though -- the old code used to infer the port from my ~/.gnus RKdC> (via nnimap-server-port), >> >> This can be helped with `auth-source-creation-defaults'. I will add a >> default to the first port to `nnimap-credentials'. RKdC> Well, it got a bit confusing now. RKdC> I need to use port 993 to connect to the IMAP server. Previously, Gnus tried RKdC> the port list for ssl (143, 993, imap and imaps), settled on 993 and asked RKdC> me for my username and password showing "imap.gmail.com:993" in the prompt. IMAP/S is normally port 993 (IMAP over SSL). TLS is on port 143. This is confusing enough that before we had a whole lot of special cases to get the result you detail. RKdC> Now, the prompt shows me "Personal:143", so the host is not shown, and the RKdC> port is wrong. It then asks me to write this information (with the wrong RKdC> port) into ~/.authinfo.gpg. I then choose "n" and it works fine, because RKdC> after that Gnus ends up connecting to port 993. The first part, "Personal", is the nnimap server name. It will work as far as Gnus is concerned. I guess we can put the address first in the list so it gets picked as the default. I'll commit that change. 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. RKdC> Any other program that prompts for confirmation of this sort of data usually RKdC> uses "***" or something like that when asking to write the password. RKdC> Wouldn't it be possible to at least add a variable for the paranoid? :) OK. Ted