--- Begin Message ---
Subject: |
[PATCH] org-crypt.el: Fix encrypt/decrypt in presence of arbitrary drawers |
Date: |
Fri, 28 Aug 2020 14:35:09 -0700 |
User-agent: |
mu4e 1.4.6; emacs 26.3 |
Hey, all.
At
https://ag91.github.io/blog/2020/08/28/org-crypt-and-logbook-how-they-can-work-together-for-a-secure-agenda/
a user described a problem where they:
1. encrypted an Org headline's contents
2. rescheduled the headline information, triggering a log note,
triggering a new LOGBOOK drawer
3. attempted to decrypt the headline's contents with no success
(`org-decrypt-entry' left the encrypted contents unchanged)
In my follow up testing, I found that if a user calls
`org-encrypt-entry' on a headline with a logbook, the logbook is
encrypted (and hence any further logging activity will create a
new logbook, triggering the bug above).
Seems the problem is that encrypt / decrypt both use
`org-end-of-meta-data' to skip to the headline contents, but they
do not pass the `full' argument to skip *all* meta data.
Tinychange patch attached.
--
Trevor Murphy
0001-org-crypt.el-Fix-encrypt-decrypt-in-presence-of-arbi.patch
Description: 0001-org-crypt.el-Fix-encrypt-decrypt-in-presence-of-arbi.patch
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#43094: [PATCH] org-crypt.el: Fix encrypt/decrypt in presence of arbitrary drawers |
Date: |
Sun, 06 Sep 2020 10:07:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Hi Trevor,
thanks for the patch. I applied it on Org master branch as 1170e39be,
the fix will be in 9.3.8 and 9.4.
Best,
--
Bastien
--- End Message ---