From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/77482 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.gnus.general Subject: Re: auth-source-search Date: Thu, 03 Mar 2011 21:00:57 +0100 Organization: aich tea tea pea dicky riley dot net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299182499 22001 80.91.229.12 (3 Mar 2011 20:01:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 20:01:39 +0000 (UTC) To: nognus Original-X-From: ding-owner+M25805@lists.math.uh.edu Thu Mar 03 21:01:35 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PvEiK-0006dT-ET for ding-account@gmane.org; Thu, 03 Mar 2011 21:01:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PvEhZ-0005kp-Ss; Thu, 03 Mar 2011 14:00:45 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PvEhX-0005kO-QX for ding@lists.math.uh.edu; Thu, 03 Mar 2011 14:00:43 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PvEhW-0002KR-7X for ding@lists.math.uh.edu; Thu, 03 Mar 2011 14:00:43 -0600 Original-Received: from [85.183.18.158] (helo=asus1015pem) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PvEhV-0008Uc-8s for ding@gnus.org; Thu, 03 Mar 2011 21:00:41 +0100 Original-Received: from shamrock by asus1015pem with local (Exim 4.72) (envelope-from ) id 1PvEhr-0006Gb-Ke for ding@gnus.org; Thu, 03 Mar 2011 21:01:03 +0100 In-Reply-To: (Richard Riley's message of "Thu, 03 Mar 2011 17:11:58 +0100") User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -0.2 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:77482 Archived-At: Richard Riley writes: > Could some kind soul show me how to get a password using > auth-source-search. > > (auth-source-search :host '("myhost")) > > returns something, but whats the equivalent of the deprecated > > (auth-source-user-or-password "password" "host" 'imap) > > (btw, why would ':host "myhost"' not be valid?) > > thanks > > r. > got there in the end (add-hook 'org-mobile-pre-push-hook '(lambda() (setq org-mobile-encryption-password (funcall (plist-get (car (auth-source-search :host '("orgmobile"))) ':secret)))))