[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac OS Keychain with SMTP
From: |
Ted Zlatanov |
Subject: |
Re: Mac OS Keychain with SMTP |
Date: |
Wed, 26 Nov 2014 09:08:24 -0500 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
On Wed, 26 Nov 2014 15:56:26 +1000 Paul Rankin <paul@tilk.co> wrote:
PR> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Tue, 25 Nov 2014 15:15:15 +1000 Paul Rankin <paul@tilk.co> 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