mirror of
https://github.com/djcb/mu.git
synced 2024-06-20 06:46:50 +02:00
* mu4e: update the text-or-html heuristic (html should be >= 10x plain text length)
This commit is contained in:
parent
e02998493d
commit
d2a8ff697a
|
@ -359,10 +359,10 @@ function prefers the text part, but this can be changed by setting
|
|||
(html (plist-get msg :body-html))
|
||||
(body
|
||||
(cond
|
||||
;; does it look like some text? ie., 20x the length of the text
|
||||
;; does it look like some text? ie., 10x the length of the text
|
||||
;; should be longer than the html, an heuristic to guard against
|
||||
;; 'This messages requires html' text bodies.
|
||||
((and (> (* 20 (length txt)) (length html))
|
||||
((and (> (* 10 (length txt)) (length html))
|
||||
;; use html if it's prefered, unless there is no html
|
||||
(or (not mu4e-view-prefer-html) (not html)))
|
||||
txt)
|
||||
|
|
Loading…
Reference in New Issue
Block a user