mirror of https://github.com/djcb/mu.git
mu4e: add mu4e-fetch-field
This commit is contained in:
parent
085ad4a9fd
commit
a31472f886
|
@ -222,6 +222,11 @@ If MSG is nil, use `mu4e-message-at-point'."
|
||||||
;; add basic `quit-window' bindings
|
;; add basic `quit-window' bindings
|
||||||
(view-mode 1)))))
|
(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)
|
(provide 'mu4e-message)
|
||||||
;;; mu4e-message.el ends here
|
;;; mu4e-message.el ends here
|
||||||
|
|
Loading…
Reference in New Issue