[PATCH] emacs: use new show --decrypt=stash feature in emacs UI
Jameson Graef Rollins
jrollins at finestructure.net
Tue Jun 12 23:07:33 PDT 2018
On Tue, Jun 12 2018, Daniel Kahn Gillmor <dkg at fifthhorseman.net> wrote:
> On Tue 2018-06-12 10:00:18 -0400, Daniel Kahn Gillmor wrote:
>> (it'd be nice to be able to use notmuch-emacs to browse a notmuch
>> archive without locking the notmuch db or even needing read/write access
>> to the database)
>
> to be clear, it's not just about wanting to be able to avoid write
> access during "notmuch show" -- there are other use cases i'd like us to
> be able to support, including the ability to keep some messages'
> cleartext indexed, while leaving some of them un-indexed (keeping their
> contents secret from anyone who doesn't have the user's secret keys).
>
> This proposed change removes that possibility, so i think it needs more
> nuance.
This patch works for all the use cases I personally care about, so I
would like a configuration that is this simple.
The use case you're arguing for, which I believe is the ability to
choose on a per-message basis whether you want to stash or not, would
have to not use the show stash functionality at all.
What if notmuch-crypto-process-mime just accepted the same values that
show --decrypt does, with the same meanings, e.g.:
âââââââââââââââââââââââââââââââââââââââ¬ââââââââ¬âââââââ¬âââââââ¬ââââââââ
â â false â auto â true â stash â
âââââââââââââââââââââââââââââââââââââââ¼ââââââââ¼âââââââ¼âââââââ¼ââââââââ¤
âShow cleartext if session key is â â X â X â X â
âalready known â â â â â
âââââââââââââââââââââââââââââââââââââââ¼ââââââââ¼âââââââ¼âââââââ¼ââââââââ¤
âUse secret keys to show cleartext â â â X â X â
âââââââââââââââââââââââââââââââââââââââ¼ââââââââ¼âââââââ¼âââââââ¼ââââââââ¤
âStash any newly recovered session â â â â X â
âkeys, reindexing message if found â â â â â
âââââââââââââââââââââââââââââââââââââââ´ââââââââ´âââââââ´âââââââ´ââââââââ
notmuch-crypto-process-mime is really only relevant for show anyway, so
I think this makes sense.
Users who want to chose to stash on a per-message basis would then need
to set notmuch-crypto-process-mime=true, and then do reindex
--decrypt=true if they want to stash.
jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20180612/3dbe32f6/attachment-0001.sig>
More information about the notmuch
mailing list