From: Frederik Vanrenterghem Date: Tue, 7 May 2024 09:25:10 +0000 (+0800) Subject: Also work when X-Spam-Status header isn't set. X-Git-Url: http://git.vanrenterghem.biz/Dotty.git/commitdiff_plain/fe02ecfb12b6920b3b608f83a572d10056a18798 Also work when X-Spam-Status header isn't set. --- diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 69a744a..a26675a 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -144,9 +144,8 @@ ;; uses mu4e-fetch-field which is rel. slow, so only appropriate ;; for mu4e-view-fields, and _not_ mu4e-headers-fields :function (lambda (msg) - (or (string-join (seq-take (split-string (mu4e-fetch-field msg "X-Spam-Status") " ") 2) " ") ""))))) + (or (string-join (seq-take (split-string (or (mu4e-fetch-field msg "X-Spam-Status") "") " ") 2) " ") ""))))) (add-to-list 'mu4e-view-fields :spam-status) -b ;; Resize image attachments when sending email (defvar mu4e-resize-image-types '("jpg" "png" "svg" "jpeg")