unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Mark Walters <markwalters1009@gmail.com>
To: notmuch@notmuchmail.org
Subject: [PATCH] emacs: tree bugfix
Date: Sat, 15 Aug 2015 08:08:13 +0100	[thread overview]
Message-ID: <1439622493-18191-1-git-send-email-markwalters1009@gmail.com> (raw)
In-Reply-To: <87d1ys7n1s.fsf@maritornes.cs.unb.ca>

Formerly replying to an encrypted message in tree-view did not
work. This is a first attempt to make it work.
---

notmuch-mua-reply decides whether to process crypto based on the
buffer-local variable notmuch-show-process-crypto. This sets to its
default value (which is notmuch-crypto-process-mime) in tree-mode
buffers.

As I do not have any crypto setup please can someone test? You will
need to set notmuch-crypto-process-mime to t first: I have no idea if
that is a bad thing to do! Any comments on whether it is a bad thing
would be very useful as (assuming this bascically fixes the problem)
the easy actual fix is to do this and let the user toggle
process-crypto for the whole tree buffer.

Best wishes

Mark


emacs/notmuch-tree.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/emacs/notmuch-tree.el b/emacs/notmuch-tree.el
index 182235e..5695b68 100644
--- a/emacs/notmuch-tree.el
+++ b/emacs/notmuch-tree.el
@@ -867,6 +867,11 @@ (defun notmuch-tree-worker (basic-query &optional query-context target open-targ
   (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))
-- 
2.1.4

  reply	other threads:[~2015-08-15  7:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 10:03 [Vagrant Cascadian] Bug#795243: notmuch-emacs: reply-to encrypted messages in tree view fails to quote and defaults to unencrypted message David Bremner
2015-08-12 11:39 ` David Bremner
2015-08-15  7:08   ` Mark Walters [this message]
2015-08-16  8:57     ` [PATCH] emacs: tree bugfix David Bremner
2015-10-15 18:46     ` Mark Walters
2015-10-15 19:04       ` Tomi Ollila
2015-10-17 20:56       ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1439622493-18191-1-git-send-email-markwalters1009@gmail.com \
    --to=markwalters1009@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).