From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Rankin Newsgroups: gmane.emacs.help Subject: Re: Mac OS Keychain with SMTP Date: Fri, 28 Nov 2014 13:45:37 +1000 Message-ID: References: <87ppcb4n65.fsf@lifelogs.com> <87egsqawbr.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417146375 24553 80.91.229.3 (28 Nov 2014 03:46:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Nov 2014 03:46:15 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ted Zlatanov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 28 04:46:10 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 1XuCVU-0005lw-LP for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Nov 2014 04:46:08 +0100 Original-Received: from localhost ([::1]:42466 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuCVU-00043Z-8i for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Nov 2014 22:46:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuCVE-00043P-Fy for help-gnu-emacs@gnu.org; Thu, 27 Nov 2014 22:45:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuCV9-0003Df-Rs for help-gnu-emacs@gnu.org; Thu, 27 Nov 2014 22:45:52 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:33827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuCV9-0003DU-IY for help-gnu-emacs@gnu.org; Thu, 27 Nov 2014 22:45:47 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DC338207E9; Thu, 27 Nov 2014 22:45:45 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Thu, 27 Nov 2014 22:45:45 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=tilk.co; h= x-sasl-enc:references:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; s=mesmtp; bh=xFYASECKdIV2 10VF1RM66Kq0cKI=; b=RE+JCdPynsCoQ4xwZinnZA9l12kIj9OfX2UJ1UkzzmGL WV9oKTgvrfDRG1oqh5c6TCQRRdsar5wp2gaLcLbzs4c18Bw0UXVGZ/XqlCSVKeZe 0shXEwxEScqMRjfp9ewnhuO+9YkvXAuAfswRTXNvOW8UP7y4wLqnsIVJL/rjdsE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; s= smtpout; bh=xFYASECKdIV210VF1RM66Kq0cKI=; b=BNFo93wmF+7cjJn2AHBl Y3X5CEeix8r0iLTFynRyP2xlCAuLK6dGiOAVW5heL9j86cA5+IYtvUiF+5WGIUs2 nst/NnLuhRjZH4nNezqc5x/GXCrWm8wuJSO3tb/COR2+k/9eq1JOlPaLshKXtK63 gdAyLm2BDDh/Ch3bA6SE5gE= X-Sasl-enc: nE3kKP9Tce69hwkdIDKM8/QCNu7ZiKAM9rIjjKoyXUI1 1417146344 Original-Received: from Paul-Rankins-MacBook-Pro.local (unknown [202.0.190.43]) by mail.messagingengine.com (Postfix) with ESMTPA id 1E7C06801BF; Thu, 27 Nov 2014 22:45:43 -0500 (EST) In-reply-to: <87egsqawbr.fsf@lifelogs.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.28 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:101253 Archived-At: Ted Zlatanov writes: >>> 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! I have perhaps found a related bug. When: '(auth-sources (quote (macos-keychain-internet))) and attempting to join a channel in erc, then I get the looping error: error in process filter: erc-channel-receive-names: Wrong type argument: hash-table-p, nil error in process filter: Wrong type argument: hash-table-p, nil When: '(auth-sources (quote ("~/.authinfo" macos-keychain-internet))) then everything works as expected. -- Paul W. Rankin http://www.paulwrankin.com Before printing this email please take a moment to think about the environment. Just stop and think about it. Think about the last time you were walking alone in a forest, how you felt at peace, how a wave of clarity seemed to overcome you and you had to stop and reevaluate your life, what you're doing with the limited time you have here. "Damn," you thought, "life is so precious. I should really be doing ______." Are you doing that now? Why not? Go on, pick up your computer and throw it out the window! It'll be great, like that scene from Network where everyone starts yelling "I'M MAD AS HELL AND I'M NOT GOING TO TAKE THIS ANY MORE." That'll be you, but it will be real. Now's your moment.