From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.help Subject: Re: Mac OS Keychain with SMTP Date: Wed, 26 Nov 2014 09:08:24 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87egsqawbr.fsf@lifelogs.com> References: <87ppcb4n65.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417011029 11980 80.91.229.3 (26 Nov 2014 14:10:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2014 14:10:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 15:10:24 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtdIU-0000g1-0U for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 15:10:22 +0100 Original-Received: from localhost ([::1]:34067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtdIT-0000lT-5m for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 09:10:21 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-X-Trace: news.albasani.net 6Cr6grdxmylmOXZHbvYZ25Vgir/kkfzzv/OibsJVFMKOMRXzg5oOQeFBy9o4s3/hpUZLRDgcFIDWbRnQOGuyCw== Original-NNTP-Posting-Date: Wed, 26 Nov 2014 14:07:44 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="syYhywv8Z4k0nvPee7VXEvn7dBrZD8hI7hka6S6lJChKQ4av5yK9dfhczZMLtBnYEuKCjttCNBpN4nwVMEH2B+/235X3+AcFjysQQfEavpYtdqr76zH1TRXIJRwI5HOM"; mail-complaints-to="abuse@albasani.net" User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) 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" Cancel-Lock: sha1:t2HgO9qYTrMiwgKzwdI06qzpe/g= sha1:msdl64yRegJ76hzgSB0UInnrPTE= Original-Xref: usenet.stanford.edu gnu.emacs.help:208940 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101220 Archived-At: On Wed, 26 Nov 2014 15:56:26 +1000 Paul Rankin wrote: PR> Ted Zlatanov writes: >> On Tue, 25 Nov 2014 15:15:15 +1000 Paul Rankin wrote: >> PR> I'd like to eschew an .authinfo file in favour of the Mac OS Keychain PR> but can't seem to get it going. I keep receiving the error: >> PR> auth-source-macos-keychain-search: The MacOS Keychain auth-source PR> backend doesn't support creation yet >> >> Please see Emacs bug#19074: Bug in auth-source.el's search of OS X >> Keychain at https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-11/msg00805.html >> >> There's a patch there which I haven't been able to test. If you could, >> please try it and let me know your experience (in the bug thread or >> here). You will have to pre-create your security tokens in the Mac >> OS X, since creating them through auth-source.el is not supported yet. PR> I applied the patch and can now successfully use SMTP with a password PR> without an .authinfo file. Cool. Would you like to update the auth.texi manual to help fellow Mac OS X users with some guidelines and the note below? PR> One further problem I had was that `auth-source.el` seems to always PR> query `security` with a port number, and I hadn't added a port number to PR> the keychain item in question, so, in Keychain Access.app PR> Where: smtp://mail.example.com:465 PR> fixed the problem. Great! PR> This is probably a silly question, but if I don't want to mess with my PR> Emacs distribution, I should just put the patched version of PR> `auth-source-macos-keychain-search-items` into my init file right? Yes, temporarily. I will apply that patch soon to emacs-24 and it will get forward-ported to master as well. Ted