* Encryption vs. Gcc
@ 2013-09-04 13:13 Ludovic Courtès
2013-09-04 18:41 ` Philipp Haselwarter
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Ludovic Courtès @ 2013-09-04 13:13 UTC (permalink / raw)
To: ding
To keep a clear-text copy of encrypted messages that I send, I tried
this, as evasively suggested by the manual:
--8<---------------cut here---------------start------------->8---
;; Keep a clear-text copy of sent messages.
(setq gnus-gcc-post-body-encode-hook
'mml-unsecure-message)
--8<---------------cut here---------------end--------------->8---
However, that doesn’t work, apparently because when the hook is called
the buffer that is current is not the message (see ‘gnus-inews-do-gcc’.)
Anyway, a more ideal solution for Gcc: would be this: if the message is
encrypted, then keep a copy encrypted with the sender’s public key
(rather than clear-text); otherwise keep a copy as is.
Does anyone have something like this?
TIA, :-)
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Encryption vs. Gcc
2013-09-04 13:13 Encryption vs. Gcc Ludovic Courtès
@ 2013-09-04 18:41 ` Philipp Haselwarter
2013-09-06 13:02 ` Ludovic Courtès
2013-09-04 20:07 ` Adam Sjøgren
2013-09-06 13:10 ` Christopher Schmidt
2 siblings, 1 reply; 5+ messages in thread
From: Philipp Haselwarter @ 2013-09-04 18:41 UTC (permalink / raw)
To: ding
I added a line with
hidden-encrypt-to $MY_FINGERPRINT (* meta-variable *)
to ~/gnupg/gpg.conf and now I can read all the stuff I encrypt without
it being obvious that I'm the sender. Neat.
--
Philipp Haselwarter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Encryption vs. Gcc
2013-09-04 13:13 Encryption vs. Gcc Ludovic Courtès
2013-09-04 18:41 ` Philipp Haselwarter
@ 2013-09-04 20:07 ` Adam Sjøgren
2013-09-06 13:10 ` Christopher Schmidt
2 siblings, 0 replies; 5+ messages in thread
From: Adam Sjøgren @ 2013-09-04 20:07 UTC (permalink / raw)
To: ding
ludo@gnu.org (Ludovic Courtès) writes:
> Anyway, a more ideal solution for Gcc: would be this: if the message is
> encrypted, then keep a copy encrypted with the sender’s public key
> (rather than clear-text); otherwise keep a copy as is.
I am using:
hidden-encrypt-to 0xMYKYHERE!
in my ~/.gnupg/gpg.conf to achieve this.
From gpg(1):
--hidden-encrypt-to name
Same as --hidden-recipient but this one is intended for use in the
options file and may be used with your own user-id as a hidden
"encrypt-to-self". These keys are only used when there are other
recipients given either by use of --recipient or by the asked user
id. No trust checking is performed for these user ids and even dis‐
abled keys can be used.
Best regards,
Adam
--
"It's not denial. I'm just very selective about the Adam Sjøgren
reality I accept." asjo@koldfront.dk
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Encryption vs. Gcc
2013-09-04 18:41 ` Philipp Haselwarter
@ 2013-09-06 13:02 ` Ludovic Courtès
0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2013-09-06 13:02 UTC (permalink / raw)
To: ding
Philipp Haselwarter <philipp@haselwarter.org> skribis:
> I added a line with
>
> hidden-encrypt-to $MY_FINGERPRINT (* meta-variable *)
>
> to ~/gnupg/gpg.conf and now I can read all the stuff I encrypt without
> it being obvious that I'm the sender. Neat.
Oh nice, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Encryption vs. Gcc
2013-09-04 13:13 Encryption vs. Gcc Ludovic Courtès
2013-09-04 18:41 ` Philipp Haselwarter
2013-09-04 20:07 ` Adam Sjøgren
@ 2013-09-06 13:10 ` Christopher Schmidt
2 siblings, 0 replies; 5+ messages in thread
From: Christopher Schmidt @ 2013-09-06 13:10 UTC (permalink / raw)
To: ding
ludo@gnu.org (Ludovic Courtès) writes:
> However, that doesn’t work, apparently because when the hook is called
> the buffer that is current is not the message (see
> ‘gnus-inews-do-gcc’.)
(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] 5+ messages in thread
end of thread, other threads:[~2013-09-06 13:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-04 13:13 Encryption vs. Gcc Ludovic Courtès
2013-09-04 18:41 ` Philipp Haselwarter
2013-09-06 13:02 ` Ludovic Courtès
2013-09-04 20:07 ` Adam Sjøgren
2013-09-06 13:10 ` 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).