summaryrefslogtreecommitdiffhomepage
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/jao-notmuch.el12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index 1adbe34..9aecd7d 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -128,11 +128,13 @@
(save-window-excursion
(jao-notmuch-goto-message-buffer)
(when (derived-mode-p 'notmuch-show-mode)
- (setq-local mm-w3m-safe-url-regexp nil
- notmuch-show-text/html-blocked-images nil
- shr-inhibit-images nil
- shr-blocked-images nil)
- (notmuch-refresh-this-buffer))))
+ (when (or mm-w3m-safe-url-regexp notmuch-show-text/html-blocked-images)
+ (setq-local mm-w3m-safe-url-regexp nil
+ notmuch-show-text/html-blocked-images nil
+ shr-inhibit-images nil
+ shr-blocked-images nil)
+ (notmuch-refresh-this-buffer))
+ (jao-notmuch--toggle-mime))))
;; Keeping track of unread messages in current tree view