mu4e: tweak notification message

This commit is contained in:
Dirk-Jan C. Binnema 2023-01-20 20:27:03 +02:00
parent 61299b853c
commit ad51082472
1 changed files with 4 additions and 4 deletions

View File

@ -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