From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77209 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-sources asking for password 2 or 3 times Date: Wed, 23 Feb 2011 08:58:13 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87sjveol16.fsf@lifelogs.com> References: <857hcumuuu.fsf@gmail.com> <87oc66kwih.fsf@gnus.org> <87k4gukw3m.fsf@gnus.org> <87vd0bwwut.fsf@lifelogs.com> <87mxln1nqc.fsf@lifelogs.com> <87lj17400k.fsf@gnus.org> <87pqqjkkdm.fsf@broken.deisui.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298473232 6031 80.91.229.12 (23 Feb 2011 15:00:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2011 15:00:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M25541@lists.math.uh.edu Wed Feb 23 16:00:27 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 1PsGCZ-0003hk-Hk for ding-account@gmane.org; Wed, 23 Feb 2011 16:00:27 +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 1PsGCR-0003rt-Sk; Wed, 23 Feb 2011 09:00:19 -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 1PsGCP-0003rW-Vk for ding@lists.math.uh.edu; Wed, 23 Feb 2011 09:00:17 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PsGCE-00023B-UV for ding@lists.math.uh.edu; Wed, 23 Feb 2011 09:00:17 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PsGCE-0000mz-77 for ding@gnus.org; Wed, 23 Feb 2011 16:00:06 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PsGCC-0003SE-AS for ding@gnus.org; Wed, 23 Feb 2011 16:00: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 ; Wed, 23 Feb 2011 16:00:04 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Feb 2011 16:00:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 38 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:gms0wBkFbr63krqCj4qO+eH5qPM= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77209 Archived-At: On Wed, 23 Feb 2011 21:25:57 +0900 Daiki Ueno wrote: DU> Do you mean it is not feasible to change the format anymore? Though I'm DU> not familiar with the history of the netrc format, I was thinking of the DU> following extension introducing a new keyword "credential", which takes DU> an ID associated with a password along with hidden attributes: DU> $ cat ~/.authinfo # plain text DU> machine example.org credential my-home-imap port imap DU> $ gpg < ~/.secrets.org.gpg DU> |--------------+----------+------------| DU> | id | password | attributes | DU> |--------------+----------+------------| DU> | my-home-imap | PaSSwoRd | user=foo | DU> |--------------+----------+------------| DU> If an entry in ~/.authinfo has neither "login", "password", nor DU> "credential", Gnus could consider the entry password-less and would not DU> try to decrypt ~/.secrets.org.gpg. DU> I think there will be no compatibility issue, except the netrc format DU> extension. If a user want to try this new feature, he could just DU> customize auth-sources so that it points to ~/.authinfo instead of DU> ~/.authinfo.gpg. Yes, this could certainly be workable. Could the line be: machine example.org port imap credential my-home-imap credential-file "~/.secrets.org.gpg" so that a) the netrc file can hold many such pointers, and b) we don't have to change the file name spec to "fileA+fileB" as I proposed? It's a little more verbose but IMO that's not a big deal in a small file like netrc. It's also backwards compatible so the users don't have to change their existing auth-sources or their authinfo/netrc files. Ted