[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Password sending mail only once
From: |
Torben Knudsen |
Subject: |
Re: Password sending mail only once |
Date: |
Sat, 10 Oct 2009 15:44:45 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Richard Riley <rileyrgdev@gmail.com> writes:
Thanks for the below advice. I am a bit squared that it will take me
some time to make the below work for me. Isn't there a simpler
solution?
> Torben Knudsen <tk@es.aau.dk> writes:
>
>> Some time ago I was asked for a password when sending mail only the
>> first time in a gnus session. Now I am asked every time I send a
>> mail.
>>
>> How can I get back to only given the password once?
>>
>> I prefer solutions with out storing password anywhere. Given it once
>> is what I prefer.
>>
>> I have found some info on the net but nothing I could handle with my
>> limited skills.
>
> With emacs 23 I have the following set up:
>
> ,----
> | ;; encryption stuff
> | (require 'auth-source)
> | (require 'epa-file)
> | (setq epa-file-cache-passphrase-for-symmetric-encryption t) ;;VERY Important
> | (if (file-exists-p "~/.authinfo.gpg")
> | (setq auth-sources '((:source "~/.authinfo.gpg" :host t :protocol t)))
> | (setq auth-sources '((:source "~/.authinfo" :host t :protocol t))))
> | ;; no idea whats needed with mm2015 : the documentation is sparse
> | (setq
> | mml2015-encrypt-to-self t
> | mml2015-cache-passphrase t
> | mml2015-passphrase-cache-expiry 60
> | mml2015-verbose t)
> `----
>
> And in my gnus-posting-style something like
>
> ,----
> | (setq gnus-posting-styles `((".*"
> | (name "Richard Riley")
> | (from "Richard Riley <riley-r-g@gmail.com>")
> | (eval(setq gnushush-user-agent-header (quote real)))
> | (signature-file "~/.emacs.d/.sigs/rgr.sig")
> | (eval (setq mml2015-signers '("b39d104a")))
> | (organization "aich tea tea pea dicky riley dot
> net"))))
> `----
>
> It's been a while since I went through to remove the wheat from the
> chaff but the mml2025 (what!?) set are key for signing I think.
>
> For caching the password my setup uses gpg-agent. The only messy thing I
> found was the need to export the required environment variables in order
> that things like emacs knew which cache process to talk to. For that I
> used
>
> ,----
> | keychain && . $HOME/.keychain/$HOSTNAME-sh-gpg > /dev/null 2>&1
> `----
>
> keychain takes care of using an existing agent or starting one if
> necessary in .bash_env on my system. It might be unnecessary on a cleaner set
> up. It caused quite a lot of frustration back when I got this
> working. Hopefully enough to get you going,
>
> regards
>
> r.
>
--
Associate Prof. Ph.D Torben Knudsen Mobile : (+45) 2787 9826
Section of Automation and Control, Direct : 6 8694
Department of Electronic Systems, Email : tk@es.aau.dk
Aalborg University
Fredrik Bajersvej 7
DK-9220 Aalborg Ø
Denmark