From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76042 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-source.el rewrite Date: Thu, 27 Jan 2011 17:49:25 +0100 Message-ID: <87mxmm47hm.fsf@gmx.de> References: <87fwvu5ele.fsf_-_@lifelogs.com> <87wrp4yjtk.fsf@lifelogs.com> <87eiarj0eu.fsf@lifelogs.com> <87pqu795st.fsf@gmx.de> <87tyjjpfkw.fsf@lifelogs.com> <87ipzz8a79.fsf@gmx.de> <87k4ked3fq.fsf@lifelogs.com> <87pqu6vajx.fsf@gmx.de> <87bp36dxfc.fsf_-_@lifelogs.com> <87ipxdlvqd.fsf@gnus.org> <8762tc538p.fsf@lifelogs.com> <87k4hsitc0.fsf@gmx.de> <877hds1x07.fsf@lifelogs.com> <87ei80oyj9.fsf@gmx.de> <8739ofzjfb.fsf@lifelogs.com> <87fwsfihkp.fsf@gmx.de> <877hdrxv27.fsf@lifelogs.com> <8739ofxqf8.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296147029 31551 80.91.229.12 (27 Jan 2011 16:50:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 16:50:29 +0000 (UTC) Cc: ding@gnus.org To: Ted Zlatanov Original-X-From: ding-owner+M24394@lists.math.uh.edu Thu Jan 27 17:50:24 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 1PiV36-0007fC-UC for ding-account@gmane.org; Thu, 27 Jan 2011 17:50:21 +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 1PiV2R-0002Th-0a; Thu, 27 Jan 2011 10:49:39 -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 1PiV2P-0002TX-AN for ding@lists.math.uh.edu; Thu, 27 Jan 2011 10:49:37 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PiV2N-0000rb-GK for ding@lists.math.uh.edu; Thu, 27 Jan 2011 10:49:36 -0600 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by quimby.gnus.org with smtp (Exim 4.72) (envelope-from ) id 1PiV2M-00062s-A7 for ding@gnus.org; Thu, 27 Jan 2011 17:49:34 +0100 Original-Received: (qmail invoked by alias); 27 Jan 2011 16:49:28 -0000 Original-Received: from p57BBD72B.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.215.43] by mail.gmx.net (mp009) with SMTP; 27 Jan 2011 17:49:28 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18t61ku12Itn7FD5l9EdqfIkzh9MsJCGW/pJjuH0I GBU6/kAwWtPzBa In-Reply-To: <8739ofxqf8.fsf@lifelogs.com> (Ted Zlatanov's message of "Wed, 26 Jan 2011 16:15:23 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76042 Archived-At: Ted Zlatanov writes: > I added this option, which seems necessary for extensibility: > > :create-extra-keys ((A \"default a\") (B)) means that the extra > keys A and B will be created when a new entry is created. If > SPEC had values for A or B, the user will not be prompted, but > otherwise the user will be prompted for A (with default value as > given) and for B (with no default). Is it necessary to pass them as list with the keyword :create-extra-keys? Just allow them to be added to SPEC, and if they don't belong to the well known keywords, they are ignored during search, and used during creation. Something else I've seen during reading: If we create a new secret, we use the *first* entry in from auth-sources as container. This is not documented IIRC, but auth-source-user-or-password is implemented like this. If a key comes with multiple values (like ":host (X Y Z)"), the *last* value is taken for creation. Sounds like a headache to me. Couldn't we always use the first entry? > Ted Best regards, Michael.