From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82041 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: Wed, 18 Jul 2012 10:13:30 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <877gu1nomt.fsf@lifelogs.com> References: <87fwabe9pz.fsf@xc.laptop> <87vcizasql.fsf@lifelogs.com> <871ulmscdd.fsf@xc.laptop> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342620827 20783 80.91.229.3 (18 Jul 2012 14:13:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Jul 2012 14:13:47 +0000 (UTC) Cc: ding@gnus.org To: XeCycle Original-X-From: ding-owner+M30311@lists.math.uh.edu Wed Jul 18 16:13:46 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 1SrV0a-000056-Nx for ding-account@gmane.org; Wed, 18 Jul 2012 16:13:45 +0200 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 1SrV0R-0006Vi-Dm; Wed, 18 Jul 2012 09:13:35 -0500 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 1SrV0Q-0006Vd-JA for ding@lists.math.uh.edu; Wed, 18 Jul 2012 09:13:34 -0500 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 1SrV0P-0003Wi-9x for ding@lists.math.uh.edu; Wed, 18 Jul 2012 09:13:34 -0500 Original-Received: from z.lifelogs.com ([173.255.230.239]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1SrV0N-0005eu-PX for ding@gnus.org; Wed, 18 Jul 2012 16:13:31 +0200 Original-Received: from heechee (c-76-28-40-19.hsd1.vt.comcast.net [76.28.40.19]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: tzz) by z.lifelogs.com (Postfix) with ESMTPSA id DF4BC6600F; Wed, 18 Jul 2012 14:13:30 +0000 (UTC) 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" In-Reply-To: <871ulmscdd.fsf@xc.laptop> (XeCycle@gmail.com's message of "Mon, 11 Jun 2012 12:26:06 +0800") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82041 Archived-At: 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. It will search `auth-sources' until it finds a match; the second entry has :host t so it's considered in the search. We don't have the ability to say "don't search for host X" yet. So you'll have to make a file with an entry for localhost and put it first in auth-sources. I think this is a pretty unusual case and I hope you agree. If not I can look into supporting it better. Ted