From 4cc057ee0a4c8c2ad6998698e39b22081a0ecd2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20M=C3=BCller?= Date: Wed, 4 Mar 2020 10:49:51 +0100 Subject: [PATCH] Fix of the attachment actions With the current version of the mu server, it is not possible open attachments, because the server expects symbols as parameters, but mu4e sends strings. This change fixes this. --- mu4e/mu4e-view.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mu4e/mu4e-view.el b/mu4e/mu4e-view.el index 964c7ec5..0be08497 100644 --- a/mu4e/mu4e-view.el +++ b/mu4e/mu4e-view.el @@ -1421,7 +1421,7 @@ If CMD is nil, ask user for it." 'mu4e~view-open-with-hist))) (index (plist-get att :index))) (mu4e~view-temp-action - (mu4e-message-field msg :docid) index "open-with" cmd))) + (mu4e-message-field msg :docid) index 'open-with cmd))) (defvar mu4e~view-pipe-hist nil "History list for the pipe argument.") @@ -1437,20 +1437,20 @@ If PIPECMD is nil, ask user for it." 'mu4e~view-pipe-hist))) (index (plist-get att :index))) (mu4e~view-temp-action - (mu4e-message-field msg :docid) index "pipe" pipecmd))) + (mu4e-message-field msg :docid) index 'pipe pipecmd))) (defun mu4e-view-open-attachment-emacs (msg attachnum) "Open MSG's attachment ATTACHNUM in the current emacs instance." (let* ((att (mu4e~view-get-attach msg attachnum)) (index (plist-get att :index))) - (mu4e~view-temp-action (mu4e-message-field msg :docid) index "emacs"))) + (mu4e~view-temp-action (mu4e-message-field msg :docid) index 'emacs))) (defun mu4e-view-import-attachment-diary (msg attachnum) "Open MSG's attachment ATTACHNUM in the current emacs instance." (interactive) (let* ((att (mu4e~view-get-attach msg attachnum)) (index (plist-get att :index))) - (mu4e~view-temp-action (mu4e-message-field msg :docid) index "diary"))) + (mu4e~view-temp-action (mu4e-message-field msg :docid) index 'diary))) (defun mu4e-view-attachment-action (&optional msg) "Ask user what to do with attachments in MSG