@@ -71,8 +71,8 @@ Some notes on the format:
7171 the MIME-part), :name (the file name, if any), :mime-type (the
7272 MIME-type, if any) and :size (the size in bytes, if any).
7373- Messages in the Headers view come from the database and do not have
74- :attachments, :body-txt or :body-html fields. Message in the
75- Message view use the actual message file, and do include these fields."
74+ :attachments or :body fields. Message in the Message view use the
75+ actual message file, and do include these fields."
7676 ; ; after all this documentation, the spectacular implementation
7777 (if msg
7878 (plist-get msg field)
@@ -81,18 +81,17 @@ Some notes on the format:
8181(defsubst mu4e-message-field (msg field )
8282 " Retrieve FIELD from message plist MSG.
8383Like `mu4e-message-field-nil' , but will sanitize nil values:
84- - all string field except body-txt/body-html: nil -> \"\"
85- - numeric fields + dates : nil -> 0
86- - all others : return the value
87- Thus, function will return nil for empty lists, non-existing body-txt
88- or body-html."
84+ - all string field except body: nil -> \"\"
85+ - numeric fields + dates : nil -> 0
86+ - all others : return the value
87+ Thus, function will return nil for empty lists, or non-existing body."
8988 (let ((val (mu4e-message-field-raw msg field)))
9089 (cond
9190 (val
9291 val) ; ; non-nil -> just return it
9392 ((member field '(:subject :message-id :path :maildir :in-reply-to ))
94- " " ) ; ; string fields except body-txt, body-html : nil -> ""
95- ((member field '(:body-html :body-txt ))
93+ " " ) ; ; string fields except body: nil -> ""
94+ ((member field '(:body ))
9695 val)
9796 ((member field '(:docid :size ))
9897 0 ) ; ; numeric type: nil -> 0
0 commit comments