Subject: Re: bug#25411: 25.1; rmail decryption problems

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 12 Dec 2020 21:17:06 +0100

Francesco Potortì <[email-masked]> writes:

> When using rmail, an ecrypted message can be decrypted by using
> epa-mail-decrypt or rmail-epa-decrypt.
>
> 1) none of these is bound to any keys, which is annoying.  The obvious
> keybinding in rmail should be C-cC-ed

I've now bound `C-c C-d' to `rmail-epa-decrypt'.

> 2) it is not clear if there is any difference between these two
> functions: both seem to do the same thing.

Presumably rmail function is rmail-specific, which explains:

> 3) epa-mail-decrypt behaves well when told not to replace the email
> contents, but when told to replace it, it should mark the email message
> as "decrypted", which it does not

That's an rmail-specific thing, so I think it's correct that it doesn't
do that.

> 4) rmail-epa-decrypt behaves well when told to replace the email
> message, but when told not to, it marks the email message as decrypted,
> which is wrong because this modifies the mail buffer, which should
> stay unmodified.  Moreover, if the buffer is saved, the (unmodified)
> mail message carries the "decrypted" tag, which does not make sense.

This should now be fixed in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no