From e51647fa789e82214f104b27bbc982344ca80f4f Mon Sep 17 00:00:00 2001 From: Daniel Fleischer Date: Mon, 23 Dec 2024 11:06:17 +0200 Subject: [PATCH] mu4e htmlp non-detection for draft messages Draft messages don't have a parent and it leads to a mu4e error: "no message at point" This fix is needed for draft messages that have a subject line, due to https://github.com/jeremy-compostella/org-msg/blob/59e2042e5f23e25f31c6aef0db1e70c6f54f117d/org-msg.el#L1184-L1185. --- org-msg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-msg.el b/org-msg.el index 558590c..bd42371 100644 --- a/org-msg.el +++ b/org-msg.el @@ -1120,7 +1120,7 @@ a html mime part, it returns t, nil otherwise." (org-msg-article-htmlp))) (defun org-msg-article-htmlp-mu4e () - (let ((msg mu4e-compose-parent-message)) + (when-let ((msg mu4e-compose-parent-message)) (with-temp-buffer (insert-file-contents-literally (mu4e-message-readable-path msg) nil nil nil t)