Is this feature request to store drafts in localstorage defined in any detail anywhere? Is it partially implemented anywhere, or part of a plugin? I looked and couldn't find anything other than a couple of messages in the dev archives.
My main question is whether we're going to save the drafts as
unencrypted data? Is this something that people are comfortable with?
Especially given that we would not store this as session-only data
(because we presumably would want to restore data from an interrupted
session), it seems like storing it as unencrypted might represent
problems (at least for some more sensitive e-mails). The obvious
solution would be for the server to store a private key and to send a
public key to javascript for encrypting localstorage. That raises
issues of where to store the private key, and how/when to generate it.
It also starts to overlap with Alec's GPG plugin. Would we want to use
the same GPG key that we use for sending encrypted messages (essentially
sending them to ourselves), or would this be a completely separate key
just for localstorage that we could potentially generate at setup and
just store along with the userdata in the database.
If I can get some answers to these questions, I'd love to start developing this.
-Charles