mu4e: add mu4e-fetch-field

This commit is contained in:
Dirk-Jan C. Binnema 2023-05-10 18:33:09 +03:00
parent 085ad4a9fd
commit a31472f886
1 changed files with 5 additions and 0 deletions

View File

@ -222,6 +222,11 @@ If MSG is nil, use `mu4e-message-at-point'."
;; add basic `quit-window' bindings
(view-mode 1)))))
(defun mu4e-fetch-field (msg hdr)
"Find the value for an arbitrary header field HDR from MSG."
(with-temp-buffer
(insert-file-contents (plist-get msg :path))
(message-fetch-field hdr)))
;;;
(provide 'mu4e-message)
;;; mu4e-message.el ends here