From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: authentification with url-retrieve Date: Thu, 29 Jan 2009 11:58:37 +0100 Message-ID: <871vume5uq.fsf@tux.homenetwork> References: <861vv4lbgs.fsf@lifelogs.com> <874p002xrp.fsf@tux.homenetwork> <86r633hxzh.fsf@lifelogs.com> <86hc3tg725.fsf@lifelogs.com> <86d4egba42.fsf@lifelogs.com> <861vuq3wzp.fsf__10403.8498750471$1232993607$gmane$org@lifelogs.com> <87eiypyjnv.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233227173 4600 80.91.229.12 (29 Jan 2009 11:06:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2009 11:06:13 +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 Jan 29 12:07:25 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LSUjj-0002w5-Cz for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 12:07:08 +0100 Original-Received: from localhost ([127.0.0.1]:52285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSUiR-0007rq-21 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2009 06:05:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LSUi7-0007qP-4s for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 06:05:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LSUi5-0007oO-Qt for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 06:05:26 -0500 Original-Received: from [199.232.76.173] (port=51496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LSUi5-0007o7-IB for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 06:05:25 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:48975 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LSUi4-0007gn-Lo for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 06:05:25 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LSUi1-0002lt-MC for help-gnu-emacs@gnu.org; Thu, 29 Jan 2009 11:05:21 +0000 Original-Received: from 137.77.197-77.rev.gaoland.net ([77.197.77.137]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 11:05:21 +0000 Original-Received: from thierry.volpiatto by 137.77.197-77.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2009 11:05:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 65 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 137.77.197-77.rev.gaoland.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:vbnTWJamCK6bjTTM/BqsL3Lidug= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61751 Archived-At: Hi Ted! Thierry Volpiatto writes: > Ted Zlatanov writes: > >> On Thu, 22 Jan 2009 15:19:36 +0100 Thierry Volpiatto wrote: >> >> TV> ,---- >> TV> | auth-source-user-or-password: get login for news.gmane.org (nntp) >> TV> | /home/thierry/.authi: 0% (0/724) >> TV> | /home/thierry/.authi: 100% (724/724) >> TV> | auth-source-user-or-password: get password for news.gmane.org (nntp) >> TV> | /home/thierry/.authi: 0% (0/724) >> TV> | /home/thierry/.authi: 100% (724/724) >> >> Ah, I see it. It's parsing that file twice, once to get the login name >> and again to get the password. >> >> The current auth-source API didn't allow me to batch this operation, so >> I had to modify the API. You'll have to get the latest Gnus from CVS >> (auth-source.el plus the files that use the new API, including >> nntp.el). The changes will make their way into Emacs CVS as well, but I >> don't know when. >> >> I tried it and it works for me, so please try it out and let me know if >> you find any problems. > > Ok i will pull last Gnus as soon as possible. > Thank you. I have installed "No Gnus v0.11" and it seem to work fine. My emacs version is: ,---- | GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) | of 2009-01-26 on tux `---- I have also enabled gpg-agent to avoid beeing prompted many time. I start it with keychain. (epa should have a time-out to cache passphrase, but i didn't find it) In my config, i use variables that are not supported by the authinfo scheme (e.g emms-lastfm...) so i fetch the login/password like that: (don't call gpg one time for user and one time for password) ,---- | (setq emms-lastfm-user-pwd | (auth-source-user-or-password '("login" "password") | "ws.audioscrobbler.com:80" | "http")) | | (setq emms-lastfm-username (car emms-lastfm-user-pwd)) | (setq emms-lastfm-password (cadr emms-lastfm-user-pwd)) `---- The same for anything-delicious.el that use actually curl and wget to post. So now when i start emacs, i am prompted only once for gpg passphrase. :) -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France