Skip to content

Commit

Permalink
mu4e-mime-parts: use mm-handle-filename
Browse files Browse the repository at this point in the history
So we get filenames in some cases we were missing
  • Loading branch information
djcb committed Aug 6, 2023
1 parent 253b440 commit ab96211
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mu4e/mu4e-mime-parts.el
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ There are some internal fields as well, e.g. ; subject to change:
(index (get-text-property (point) 'gnus-part)))
(when (and part (numberp index) (not (member index indices)))
(let* ((disp (mm-handle-disposition part))
(fname (cdr-safe
(and disp (assoc 'filename (cdr disp)))))
(fname (mm-handle-filename part))
(mime-type (mm-handle-media-type part))
(info
`(:part-index ,index
Expand Down

0 comments on commit ab96211

Please sign in to comment.