From d2a8ff697af849ee4cc355e4883dcc8abf298ada Mon Sep 17 00:00:00 2001 From: djcb Date: Fri, 10 Aug 2012 10:19:30 +0300 Subject: [PATCH] * mu4e: update the text-or-html heuristic (html should be >= 10x plain text length) --- mu4e/mu4e-utils.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mu4e/mu4e-utils.el b/mu4e/mu4e-utils.el index 4abac303..a0e95d4c 100644 --- a/mu4e/mu4e-utils.el +++ b/mu4e/mu4e-utils.el @@ -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)