mu4e: document mu4e-view-html-plaintext-ratio-heuristic
Add note about most-positive-fixnum. This fixes issue #903.
This commit is contained in:
@ -67,7 +67,9 @@ is always used."
|
|||||||
(defcustom mu4e-view-html-plaintext-ratio-heuristic 5
|
(defcustom mu4e-view-html-plaintext-ratio-heuristic 5
|
||||||
"Ratio between the length of the html and the plain text part
|
"Ratio between the length of the html and the plain text part
|
||||||
below which mu4e will consider the plain text part to be 'This
|
below which mu4e will consider the plain text part to be 'This
|
||||||
messages requires html' text bodies."
|
messages requires html' text bodies. You can neutralize
|
||||||
|
it (always show the text version) by using
|
||||||
|
`most-positive-fixnum'."
|
||||||
:type 'integer
|
:type 'integer
|
||||||
:group 'mu4e-view)
|
:group 'mu4e-view)
|
||||||
|
|
||||||
@ -167,10 +169,10 @@ be changed by setting `mu4e-view-prefer-html'."
|
|||||||
(body
|
(body
|
||||||
(cond
|
(cond
|
||||||
;; does it look like some text? ie., if the text part is more than
|
;; does it look like some text? ie., if the text part is more than
|
||||||
;; mu4e-view-html-plaintext-ratio-heuristic times shorter than the
|
;; mu4e-view-html-plaintext-ratio-heuristic times shorter than the
|
||||||
;; html part, it should't be used
|
;; html part, it should't be used
|
||||||
;; This is an heuristic to guard against 'This messages requires
|
;; This is an heuristic to guard against 'This messages requires
|
||||||
;; html' text bodies.
|
;; html' text bodies.
|
||||||
((and (> (* mu4e-view-html-plaintext-ratio-heuristic
|
((and (> (* mu4e-view-html-plaintext-ratio-heuristic
|
||||||
(length txt)) (length html))
|
(length txt)) (length html))
|
||||||
;; use html if it's prefered, unless there is no html
|
;; use html if it's prefered, unless there is no html
|
||||||
|
|||||||
Reference in New Issue
Block a user