Merge pull request #1341 from abo-abo/fix-view-attachment

mu4e/mu4e-view.el (mu4e-view-open-attachment): Ensure attachments are set
This commit is contained in:
Dirk-Jan C. Binnema
2018-11-19 21:40:52 +02:00
committed by GitHub

View File

@ -1299,7 +1299,10 @@ ATTNUM is nil ask for the attachment number."
(interactive)
(let* ((msg (or msg (mu4e-message-at-point)))
(attnum (or attnum
(mu4e~view-get-attach-num "Attachment to open" msg)))
(progn
(unless mu4e~view-attach-map
(mu4e~view-construct-attachments-header msg))
(mu4e~view-get-attach-num "Attachment to open" msg))))
(att (or (mu4e~view-get-attach msg attnum)))
(index (plist-get att :index))
(docid (mu4e-message-field msg :docid))