From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82661 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug: auth-sources not set before retrieving authinfo Date: Sat, 22 Dec 2012 21:37:15 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <874njdebok.fsf@lifelogs.com> References: <87fwabe9pz.fsf@xc.laptop> <87vcizasql.fsf@lifelogs.com> <871ulmscdd.fsf@xc.laptop> <877gu1nomt.fsf@lifelogs.com> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356230413 29529 80.91.229.3 (23 Dec 2012 02:40:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Dec 2012 02:40:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30927@lists.math.uh.edu Sun Dec 23 03:40:28 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TmbUJ-0002bd-3m for ding-account@gmane.org; Sun, 23 Dec 2012 03:40: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 1TmbU0-0000RQ-4S; Sat, 22 Dec 2012 20:40:08 -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 1TmbTy-0000R5-EG for ding@lists.math.uh.edu; Sat, 22 Dec 2012 20:40:06 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TmbTn-0006Tf-Qe for ding@lists.math.uh.edu; Sat, 22 Dec 2012 20:40:06 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TmbTm-00053Q-E8 for ding@gnus.org; Sun, 23 Dec 2012 03:39:54 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TmbTw-0002G1-PR for ding@gnus.org; Sun, 23 Dec 2012 03:40:04 +0100 Original-Received: from c-65-96-148-157.hsd1.ma.comcast.net ([65.96.148.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Dec 2012 03:40:04 +0100 Original-Received: from tzz by c-65-96-148-157.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Dec 2012 03:40:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-65-96-148-157.hsd1.ma.comcast.net 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" Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:3ZjnQN70g0YA8I6rt7laV28WxAw= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82661 Archived-At: On Wed, 18 Jul 2012 10:13:30 -0400 Ted Zlatanov wrote: TZ> On Mon, 11 Jun 2012 12:26:06 +0800 XeCycle wrote: X> Ted Zlatanov writes: X> [...] >>> You can also structure `auth-sources' so a specific host is found in >>> ~/.authinfo but all others come from ~/.authinfo.gpg. >>> >>> First in the list, put the ~/.authinfo entry, and add an extra parameter >>> "host: regex" with `M-x customize-variable'. The equivalent Lisp: >>> >>> #+begin_src lisp >>> (setq auth-sources '((:source "~/.authinfo" :host "yourhost" :port t) >>> (:source "~/.authinfo.gpg" :host t :port t))) >>> >>> #+end_src >>> >>> Let me know if it works OK for you or not. X> Sadly it doesn't. It seems to try all sources. X> I've set it to this: X> (setq auth-sources '((:source "/dev/null" :host "localhost") X> (:source "~/.authinfo.gpg" :host t))) X> It still asks me for that. TZ> It will search `auth-sources' until it finds a match; the second entry TZ> has :host t so it's considered in the search. We don't have the ability TZ> to say "don't search for host X" yet. So you'll have to make a file TZ> with an entry for localhost and put it first in auth-sources. TZ> I think this is a pretty unusual case and I hope you agree. If not I TZ> can look into supporting it better. I haven't heard of anyone else needing this, but wanted to check again 6 months later and ask if I should implement it more natively. Any interest? Thanks Ted