Emacs: Crypto: How to get automatic encryption?
Jameson Graef Rollins
jrollins at finestructure.net
Thu Jan 12 10:41:31 PST 2012
On Tue, 03 Jan 2012 13:45:14 -0800, Jameson Graef Rollins <jrollins at finestructure.net> wrote:
> Unfortunately, auto encrypting of replies to encrypted emails is not yet
> implemented. It is desperately needed, though, obviously. So this is a
> good excuse to start a discussion about how we could achieve this.
>
> It just occurs to me that a way to do this would be to have notmuch
> reply add the appropriate mml #secure tag for encryption to the output
> reply template, maybe with something like a --emacs option. That would
> be pretty easy to implement, although it would obviously be very UI
> specific.
>
> Another possibility would be for notmuch reply to add some sort of
> header to the reply message to indicate that the original was encrypted,
> and then do something in emacs to try to read that header and add the
> appropriate mml #secure tag. That would also be easy to implement in
> the notmuch CLI, and it would be more UI agnostic, but it would require
> a lot more elisp.
There is a set of patches in the queue to add a JSON output format for
reply, with the emacs UI then consuming that to construct the reply
template [0]. This will make it very easy to communicate to the emacs
UI that the original message was encrypted, and that the reply should be
similarly encrypted. I'm going to wait until that patch set makes it
through, and then build this functionality on top of that.
jamie.
[0] id:"1326009162-19524-3-git-send-email-awg+notmuch at xvx.ca"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120112/42337ce5/attachment.pgp>
More information about the notmuch
mailing list