mirror of https://github.com/djcb/mu.git
* mu4e: support the :size field in headers, message view
This commit is contained in:
parent
0844984095
commit
5a9b867ca8
|
@ -462,7 +462,12 @@ headers)."
|
||||||
( :name "Signature"
|
( :name "Signature"
|
||||||
:shortname "Sgn"
|
:shortname "Sgn"
|
||||||
:help "Check for the cryptographic signature"
|
:help "Check for the cryptographic signature"
|
||||||
:sortable nil))
|
:sortable nil))
|
||||||
|
(:size .
|
||||||
|
( :name "Size"
|
||||||
|
:shortname "Size"
|
||||||
|
:help "Size of the message"
|
||||||
|
:sortable t))
|
||||||
(:subject .
|
(:subject .
|
||||||
( :name "Subject"
|
( :name "Subject"
|
||||||
:shortname "Subject"
|
:shortname "Subject"
|
||||||
|
|
|
@ -182,9 +182,7 @@ plist."
|
||||||
(if datestr (mu4e~view-construct-header field datestr) "")))
|
(if datestr (mu4e~view-construct-header field datestr) "")))
|
||||||
;; size
|
;; size
|
||||||
(:size
|
(:size
|
||||||
(let* (size (mu4e-view-size msg)
|
(mu4e~view-construct-header field (mu4e-display-size fieldval)))
|
||||||
(sizestr (when size (format "%d bytes" size))))
|
|
||||||
(if sizestr (mu4e~view-construct-header field sizestr))))
|
|
||||||
;; attachments
|
;; attachments
|
||||||
(:attachments (mu4e~view-construct-attachments-header msg))
|
(:attachments (mu4e~view-construct-attachments-header msg))
|
||||||
;; pgp-signatures
|
;; pgp-signatures
|
||||||
|
|
|
@ -533,7 +533,8 @@ Some notes to explain what you see in the example:
|
||||||
|
|
||||||
@itemize
|
@itemize
|
||||||
@item The fields shown in the headers view can be influenced by customizing
|
@item The fields shown in the headers view can be influenced by customizing
|
||||||
the variable @code{mu4e-headers-fields}.
|
the variable @var{mu4e-headers-fields}; see @var{mu4e-header-info} for the
|
||||||
|
list of available fields.
|
||||||
@item Instead of showing the @t{From:} and @t{To:} fields separately, you
|
@item Instead of showing the @t{From:} and @t{To:} fields separately, you
|
||||||
can use From/To (@t{:from-or-to} in @code{mu4e-headers-fields} as a more
|
can use From/To (@t{:from-or-to} in @code{mu4e-headers-fields} as a more
|
||||||
compact way to convey the most important information: it shows @t{From:}
|
compact way to convey the most important information: it shows @t{From:}
|
||||||
|
|
Loading…
Reference in New Issue