From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77130 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general,gmane.emacs.bugs Subject: Re: bug#8050: Gnus does not connect to my IMAP server any more Date: Tue, 22 Feb 2011 15:51:29 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87lj17ybz2.fsf@lifelogs.com> References: <874o836dfv.fsf@lifelogs.com> <87sjvn3a4u.fsf@lifelogs.com> <87aahu8a06.fsf@gnus.org> <874o81xfng.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298411525 4486 80.91.229.12 (22 Feb 2011 21:52:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 21:52:05 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M25463@lists.math.uh.edu Tue Feb 22 22:52:00 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 1Ps09H-0001mM-Nn for ding-account@gmane.org; Tue, 22 Feb 2011 22:52:00 +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 1Ps098-0005P8-VY; Tue, 22 Feb 2011 15:51:51 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Ps097-0005Om-8X for ding@lists.math.uh.edu; Tue, 22 Feb 2011 15:51:49 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1Ps096-0006Tk-6B for ding@lists.math.uh.edu; Tue, 22 Feb 2011 15:51:49 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Ps095-00085Y-Di for ding@gnus.org; Tue, 22 Feb 2011 22:51:47 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ps094-0001fF-TL for ding@gnus.org; Tue, 22 Feb 2011 22:51:46 +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 ; Tue, 22 Feb 2011 22:51:46 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Feb 2011 22:51:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 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.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:kXCeAXXwKvMQrpEcdTB0BPRI3bw= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77130 gmane.emacs.bugs:44308 Archived-At: On Fri, 18 Feb 2011 17:43:13 -0500 Stefan Monnier wrote: SM> The previous prompt included the ~/.authinfo.gpg file name which SM> I thought was good. On the contrary, the hostname info seems redundant SM> since it's already been displayed by the previous 2 prompts. >> where `s' shows the line we will add with the password replaced by ****? SM> Here are some ways to handle the "showing the line": SM> 1- show it in the prompt: loud, noisy, and worst of all, shows the SM> password in the clear, right after you entered it via `read-passwd' SM> which was careful to keep it hidden. SM> 2- Add an `s' option to the prompt. SM> 3- Add a second prompt (when if the user selected `y') to confirm the SM> actual text that will be saved. Can be kind of a pain for the user, SM> but presumably, password aren't saved all the time. SM> 4- not show it at all, let the user visit the file afterwards to see SM> what happened if he wants to. SM> 1 is out. 2 seems like a lot of trouble compared to using y-or-n-p SM> (tho, if you add an `N' option anyway to remember not to prompt next SM> time, the extra work is already done). 3 might be a bit annoying to SM> some of the users (especially those who want to save the password but SM> don't want to have it displayed). 4 seemed sufficient to me, but SM> apparently YMMV. SM> So yes, I'd vote for 2 or 4 (as the coder, I'd choose 4 ;-) I did 2+3, asking as follows: Add to file ~/.authinfo.gpg? (y)es/(n)o but use it/(e)dit line/(s)kip file: s where ?e uses read-string. I distinguish between ?n to say "don't save but keep this info" and ?s to say "skip this file, I want to add to the next one". So it's one prompt, plus ?e for those who want to ensure the data is saved correctly. Ted