diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2026-03-21 16:08:55 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2026-03-21 16:08:55 +0200 |
| commit | a8620c728ad2d21fbc760867dc38789f17230562 (patch) | |
| tree | 8ec3477fbc47663bfa6951d8fb2b33b50b24d940 /mu4e | |
| parent | ead584a578704d7d66c02a29d480a5ad17311541 (diff) | |
mu4e-mime-parts: fix actions
Use mm-pipe-part rather then gnus-article-pipe-part since we no longer
have the gnus buffer available.
Diffstat (limited to 'mu4e')
| -rw-r--r-- | mu4e/mu4e-mime-parts.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mu4e/mu4e-mime-parts.el b/mu4e/mu4e-mime-parts.el index 507e35d..2a01dee 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 |
