From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86715 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Severe limitations in auth-source-macos-keychain-search Date: Sat, 06 Feb 2016 17:00:46 +1100 Message-ID: <87zivepecx.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454738512 30044 80.91.229.3 (6 Feb 2016 06:01:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 06:01:52 +0000 (UTC) Cc: ding@gnus.org To: Jeff Bellegarde Original-X-From: ding-owner+M34941@lists.math.uh.edu Sat Feb 06 07:01:40 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aRvwB-0006rL-4U for ding-account@gmane.org; Sat, 06 Feb 2016 07:01:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1aRvvw-0002Xx-3B; Sat, 06 Feb 2016 00:01:24 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1aRvvt-0002XL-SD for ding@lists.math.uh.edu; Sat, 06 Feb 2016 00:01:21 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1aRvvs-0007Pc-Ol for ding@lists.math.uh.edu; Sat, 06 Feb 2016 00:01:21 -0600 Original-Received: from hermes.netfonds.no ([80.91.224.195]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1aRvvp-00028N-S7 for ding@gnus.org; Sat, 06 Feb 2016 07:01:17 +0100 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aRvvO-00075B-TQ; Sat, 06 Feb 2016 07:00:51 +0100 In-Reply-To: (Jeff Bellegarde's message of "Mon, 25 Jan 2016 08:17:26 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-MailScanner-ID: 1aRvvO-00075B-TQ MailScanner-NULL-Check: 1455343254.28338@YQrT/m1+edxA/r0I4YUXGA X-Spam-Status: No X-Spam-Score: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86715 Archived-At: Jeff Bellegarde writes: > I just finished hacking something into shape. I added the following to my > .gnus. I doubt it's the best solution but it appears to work on my machine. > > ;; 1. spec contains lists for `host' and `port'. I use `first' to arbitrarily search for only the first key. > ;; 2. Use -P to search for port instead of -r. -r requires a 4 character term and disallows a term like 'https'. > ;; -P seems to work for strings and port numbers. > (eval-when-compile (require 'cl)) > (defun* auth-source-macos-keychain-search-items (coll type max > &rest spec Could you submit at patch for auth-source? I'm sure other people would also find this useful... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no