]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: tree bugfix
authorMark Walters <markwalters1009@gmail.com>
Thu, 15 Oct 2015 18:46:34 +0000 (19:46 +0100)
committerDavid Bremner <david@tethera.net>
Sat, 17 Oct 2015 12:07:16 +0000 (09:07 -0300)
Formerly replying to an encrypted message in tree-view did not work:
the message was not decrypted. This commit makes notmuch-tree respect
the setting of notmuch-crypto-process-mime. In particular, if
notmuch-crypto-process-mime is set to t, then replying to encrypted
messages in tree mode will now decrypt the reply (as it already did in
show mode).

emacs/notmuch-tree.el

index 182235e79525be3723877d496ed717018af4f7f3..5695b684029c9fad127d93be65773d9783befaae 100644 (file)
@@ -867,6 +867,11 @@ the same as for the function notmuch-tree."
   (setq notmuch-tree-query-context query-context)
   (setq notmuch-tree-target-msg target)
   (setq notmuch-tree-open-target open-target)
+  ;; Set the default value for `notmuch-show-process-crypto' in this
+  ;; buffer. Although we don't use this some of the functions we call
+  ;; (such as reply) do. It is a buffer local variable so setting it
+  ;; will not affect genuine show buffers.
+  (setq notmuch-show-process-crypto notmuch-crypto-process-mime)
 
   (erase-buffer)
   (goto-char (point-min))