mu4e/mu4e-view.el (mu4e-view-open-attachment): Ensure attachments are set
Before this change, I would press "o" and `mu4e~view-attach-map' would be nil. Now it works as expected.
This commit is contained in:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user