From dc65f0c5ecbc256d0d811bd1e31c23f27fe0369e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sun, 31 Jul 2016 23:28:35 +0200 Subject: [PATCH] Fix a regression in pull request #831 The mu4e-message-field function was called in a way that would never work, fix that by calling it correctly. There's the additional follow-up TODO here that the mu4e-message-field function itself should probably die on this sort of invocation, but I don't know enough about elisp idioms to know how that should look. This fixes my issue #894. --- mu4e/mu4e-actions.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mu4e/mu4e-actions.el b/mu4e/mu4e-actions.el index 790e2b00..0128c528 100644 --- a/mu4e/mu4e-actions.el +++ b/mu4e/mu4e-actions.el @@ -93,7 +93,7 @@ return the filename." (if (plist-get attachment :temp) (replace-match (format "src=\"%s\"" (plist-get attachment :temp))) (replace-match (format "src=\"%s%s\"" temporary-file-directory (plist-get attachment :name))) - (mu4e~proc-extract 'save (mu4e-message-field :docid) (plist-get attachment :index) mu4e-decryption-policy temporary-file-directory) + (mu4e~proc-extract 'save (mu4e-message-field msg :docid) (plist-get attachment :index) mu4e-decryption-policy temporary-file-directory) (mu4e-remove-file-later (format "%s%s" temporary-file-directory (plist-get attachment :name)))))) attachments) (save-buffer)