1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-20 06:46:50 +02:00

mu4e-mime-parts: use mm-handle-filename

So we get filenames in some cases we were missing
This commit is contained in:
Dirk-Jan C. Binnema 2023-08-06 23:24:12 +03:00
parent 253b44043b
commit ab96211799

View File

@ -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