From ad5108247228504efa4cd3750bff4049f8ae2439 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Fri, 20 Jan 2023 20:27:03 +0200 Subject: [PATCH] mu4e: tweak notification message --- mu4e/mu4e-notification.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mu4e/mu4e-notification.el b/mu4e/mu4e-notification.el index 6295445e..8637aa44 100644 --- a/mu4e/mu4e-notification.el +++ b/mu4e/mu4e-notification.el @@ -55,12 +55,12 @@ messages since baseline for the favorite bookmark." The default implementation uses emacs' built-in dbus-notification support." (when-let ((fav (mu4e-bookmark-favorite))) - (let* ((title "Mu4e found new mail") + (let* ((title "mu4e found new mail") (delta-unread (or (plist-get fav :delta-unread) 0)) - (body (format "There %s %d new message%s for your favorite bookmark" - (if (= delta-unread 1) "is" "are") + (body (format "%d new message%s in %s" delta-unread - (if (= delta-unread 1) "" "s")))) + (if (= delta-unread 1) "" "s") + (plist-get fav :name)))) (cond ((fboundp 'notifications-notify) ;; notifactions available