From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Steele Scott Newsgroups: gmane.emacs.help Subject: How to store SMTP credentials via Secret Service API? Date: Thu, 13 Jun 2013 09:17:09 +0930 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1371081069 26212 80.91.229.3 (12 Jun 2013 23:51:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Jun 2013 23:51:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 13 01:51:10 2013 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 1Umuon-0006Yz-MA for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Jun 2013 01:51:09 +0200 Original-Received: from localhost ([::1]:56207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umuon-0000OO-8Q for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Jun 2013 19:51:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmuoG-0000IY-OU for help-gnu-emacs@gnu.org; Wed, 12 Jun 2013 19:50:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmuoF-0003wm-HO for help-gnu-emacs@gnu.org; Wed, 12 Jun 2013 19:50:36 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:35104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmuoF-0003wW-BL for help-gnu-emacs@gnu.org; Wed, 12 Jun 2013 19:50:35 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Umunk-00061I-0H for help-gnu-emacs@gnu.org; Thu, 13 Jun 2013 01:50:34 +0200 Original-Received: from 146.174.200.100 ([146.174.200.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jun 2013 01:50:04 +0200 Original-Received: from toojays by 146.174.200.100 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jun 2013 01:50:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 146.174.200.100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:91485 Archived-At: I'd like to store my SMTP authentication details using the Secret Service API, rather than keep them in the authinfo file. However, I'm having trouble creating the credential in the first place. If I eval something like: (secrets-create-item "Default" "toojays.net smtp" "my-secret-password" :host "my-mail-host" :port "587" :user "toojays@toojays.net") it errors like: Secret Service session: /org/freedesktop/secrets/session/s287 byte-code: D-Bus error: "Method \"CreateItem\" with signature \"a{sv}(oayay)b\" on interface \"org.freedesktop.Secret.Collection\" doesn't exist I found a similar error in a bug report for a different application where it seems like a compatibility issue due to a different version of gnome-keyring. My system is running Ubuntu 12.04 and has gnome-keyring 3.2.2-2ubuntu4.1, and also mate-keyring 1.6.0-1+precise. Is there a workaround for this? For instance, if I could create the key some other way (e.g. via seahorse), will Emacs be able to retrieve it? Have I even used the correct syntax to create the key? Thanks, John