* Changing GPG encryption for GCC copy
@ 2012-11-07 9:00 Matt Ford
2012-11-07 9:50 ` Adam Sjøgren
2012-11-07 10:44 ` Christopher Schmidt
0 siblings, 2 replies; 4+ messages in thread
From: Matt Ford @ 2012-11-07 9:00 UTC (permalink / raw)
To: ding
Inspired by a recent thread I wondered if there was an elegant way of
switching the encryption key used when saving a copy of an encrypted
message via GCC.
That way I might be able to read some of the encrypted messages I've
sent. I can't help feel I'm missing something here - should the fact
that I've signed and encrypted an email also mean that I should be able
to decrypt it (i.e, message should be encrypted with both my key and the
recipients).
--
Matt
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Changing GPG encryption for GCC copy
2012-11-07 9:00 Changing GPG encryption for GCC copy Matt Ford
@ 2012-11-07 9:50 ` Adam Sjøgren
2012-11-07 10:54 ` Matt Ford
2012-11-07 10:44 ` Christopher Schmidt
1 sibling, 1 reply; 4+ messages in thread
From: Adam Sjøgren @ 2012-11-07 9:50 UTC (permalink / raw)
To: ding
On Wed, 07 Nov 2012 09:00:46 +0000, Matt wrote:
> I can't help feel I'm missing something here - should the fact that
> I've signed and encrypted an email also mean that I should be able to
> decrypt it (i.e, message should be encrypted with both my key and the
> recipients).
I think this is often done by configuring gpg to encrypt for your key as
well, perhaps by setting default-recipient and hidden-encrypt-to in
~/.gnupg/gpg.conf
(It's been a while since I added those options to my configuration, that
is why I am being vague.)
Best regards,
Adam
--
"Man skal være godt skør for at blive programmør Adam Sjøgren
Sidde og trykke på taster til den dag hvor man dør asjo@koldfront.dk
Jeg bliver ved til den dag hvor fornuften går fløjten
Så ryger tasterne på hylden til fordel for sprøjten"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Changing GPG encryption for GCC copy
2012-11-07 9:00 Changing GPG encryption for GCC copy Matt Ford
2012-11-07 9:50 ` Adam Sjøgren
@ 2012-11-07 10:44 ` Christopher Schmidt
1 sibling, 0 replies; 4+ messages in thread
From: Christopher Schmidt @ 2012-11-07 10:44 UTC (permalink / raw)
To: ding
Matt Ford <matt@dancingfrog.co.uk> writes:
> Inspired by a recent thread I wondered if there was an elegant way of
> switching the encryption key used when saving a copy of an encrypted
> message via GCC.
Check gnus-gcc-pre-body-encode-hook and gnus-gcc-post-body-encode-hook.
I have this in my gnus-init.el:
(ah gnus-gcc-pre-body-encode-hook
(goto-char (message-goto-body))
(while (re-search-forward "^<#\\(secure .*mode=\\(sign\\)?encrypt.*>\\)$"
nil
t)
(replace-match "<|rms\\1")))
(ah gnus-gcc-post-body-encode-hook
(goto-char (message-goto-body))
(while (re-search-forward "^<|rms\\(.*\\)$" nil t)
(replace-match "<#\\1")))
Christopher
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-07 10:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-07 9:00 Changing GPG encryption for GCC copy Matt Ford
2012-11-07 9:50 ` Adam Sjøgren
2012-11-07 10:54 ` Matt Ford
2012-11-07 10:44 ` Christopher Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).