From 939582e98a4eb350388d8f00678fa031b2ab20b8 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 21 Mar 2026 16:08:55 +0200 Subject: [PATCH] mu4e-mime-parts: fix actions Use mm-pipe-part rather then gnus-article-pipe-part since we no longer have the gnus buffer available. --- mu4e/mu4e-mime-parts.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-mime-parts.el b/mu4e/mu4e-mime-parts.el index 507e35d7..2a01dee0 100644 --- a/mu4e/mu4e-mime-parts.el +++ b/mu4e/mu4e-mime-parts.el @@ -347,9 +347,9 @@ files." ;; ;; save MIME-part to a file - (:name "save" :handler gnus-article-save-part :receives index) + (:name "save" :handler mm-save-part :receives handle) ;; pipe MIME-part to some arbitrary shell command - (:name "|pipe" :handler gnus-article-pipe-part :receives index) + (:name "|pipe" :handler mm-pipe-part :receives handle) ;; open with the default handler, if any (:name "open" :handler mu4e--view-open-file :receives temp) ;; open with some custom file. @@ -385,6 +385,7 @@ Each of the actions is a plist with keys ;; - a string, which is taken as a shell command :receives ;; a symbol specifying what the handler receives + ;; - handle: the Gnus MIME handle for the part ;; - index: the index number of the mime part (default) ;; - temp: the full path to the mime part in a ;; temporary file, which is deleted immediately @@ -469,6 +470,7 @@ the third MIME-part." (cond ((functionp handler) (cond + ((eq receives 'handle) (funcall handler handle)) ((eq receives 'index) (funcall handler id)) ((eq receives 'pipe) (funcall handler (mm-with-unibyte-buffer