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: Tue, 20 Jan 2009 21:19:06 +0100 Message-ID: <87y6x5spc5.fsf@tux.homenetwork> References: <861vv4lbgs.fsf@lifelogs.com> <874p002xrp.fsf@tux.homenetwork> <86r633hxzh.fsf@lifelogs.com> <86hc3tg725.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232483345 18508 80.91.229.12 (20 Jan 2009 20:29:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2009 20:29:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 20 21:30:18 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 1LPNEd-00060g-HX for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jan 2009 21:30:07 +0100 Original-Received: from localhost ([127.0.0.1]:51201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPNDM-0008HZ-9L for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jan 2009 15:28:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPNAG-0004zT-SG for help-gnu-emacs@gnu.org; Tue, 20 Jan 2009 15:25:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPNAF-0004xC-3d for help-gnu-emacs@gnu.org; Tue, 20 Jan 2009 15:25:36 -0500 Original-Received: from [199.232.76.173] (port=37373 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPNAE-0004wy-Ub for help-gnu-emacs@gnu.org; Tue, 20 Jan 2009 15:25:34 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:60836 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 1LPNAE-00035a-Ft for help-gnu-emacs@gnu.org; Tue, 20 Jan 2009 15:25:34 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LPNAB-0006Z0-EH for help-gnu-emacs@gnu.org; Tue, 20 Jan 2009 20:25:31 +0000 Original-Received: from 64.211.85-79.rev.gaoland.net ([79.85.211.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Jan 2009 20:25:31 +0000 Original-Received: from thierry.volpiatto by 64.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Jan 2009 20:25:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 95 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 64.211.85-79.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:TRBY91KN+zrhQetGG85wPnWVhPQ= 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:61514 Archived-At: Hi Ted! Ted Zlatanov writes: > On Fri, 16 Jan 2009 23:22:15 +0100 Thierry Volpiatto wrote: > > TV> When i use encryption, (epa settings) i am prompt two times for > TV> passphrase, is it normal? > >> Ted Z wrote: >>> No, if you're caching the passphrase >>> (epa-file-cache-passphrase-for-symmetric-encryption should be t). Can >>> you check? > > TV> It is set to t, and it always prompt two times for passphrase. > > TV> One problem also is that passphrase is required for things that > TV> doesn't need it: For example with gnus i am prompt for passphrase > TV> when i start gnus to read my mails but i use fetchmail to retrieve > TV> my mails. No password is set in gnus to contact pop service. Is it > TV> possible to write in authinfo a pop entry with a dummy password or a > TV> password set to nil? > > Sure, but let's be clear on what's happening. > So i am speaking about the use of a .authinfo.gpg. About reading mails/news in gnus: When i call gnus , i do not need any authentification because at this moment, my mails are already retrieved by fetchmail. gnus have only to bring my mails from my incoming directory to his directory (Mail). But gnus try to read .authinfo.gpg if it exist. > You start up Gnus. Then you are asked for what password? You enter it; I am asked a first time for my gpg passphrase. > what's in *Messages*? /home/thierry/.authi: 0% (0/721) /home/thierry/.authi: 100% (721/721) > You are asked again for what password? You enter it again, what's new I am asked a second time for my gpg passphrase. > in *Messages*? /home/thierry/.authi: 0% (0/721) /home/thierry/.authi: 100% (721/721) Now gnus start normally. NOTE: actually i don't know why i, when i start again gnus i am prompt again (two times) for my passphrase like if : ,---- | (setq epa-file-cache-passphrase-for-symmetric-encryption t) `---- have no effect. > The exact prompts and sequence of events are important. I also need to > know your authinfo contents, suitably edited to keep your info private. My .authinfo.gpg: ,---- | machine api.del.icio.us:443 port https login xxxxxx password xxxxxxx | machine smtp.gmail.com port 587 login xxxxxx password xxxxxxxxx `---- The smtp line replace the old settings in .gnus.el: ,---- | ;; (setq smtpmail-auth-credentials '(("smtp.gmail.com" 587 | ;; "my_email_as_login" "My_password"))) `---- My authinfo config in .emacs: ,---- | (require 'auth-source) | (require 'epa-file) | (epa-file-enable) | (setq epa-file-cache-passphrase-for-symmetric-encryption t) ; VERY important | (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t))) `---- I hope i was clear, feel free to ask me more infos. Thank you. -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France