From fe02ecfb12b6920b3b608f83a572d10056a18798 Mon Sep 17 00:00:00 2001 From: Frederik Vanrenterghem Date: Tue, 7 May 2024 17:25:10 +0800 Subject: [PATCH] Also work when X-Spam-Status header isn't set. --- emacs/.emacs.d/init.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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") -- 2.39.5