mirror of https://github.com/djcb/mu.git
mu4e: tweak notification message
This commit is contained in:
parent
61299b853c
commit
ad51082472
|
@ -55,12 +55,12 @@ messages since baseline for the favorite bookmark."
|
||||||
The default implementation uses emacs' built-in dbus-notification
|
The default implementation uses emacs' built-in dbus-notification
|
||||||
support."
|
support."
|
||||||
(when-let ((fav (mu4e-bookmark-favorite)))
|
(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))
|
(delta-unread (or (plist-get fav :delta-unread) 0))
|
||||||
(body (format "There %s %d new message%s for your favorite bookmark"
|
(body (format "%d new message%s in %s"
|
||||||
(if (= delta-unread 1) "is" "are")
|
|
||||||
delta-unread
|
delta-unread
|
||||||
(if (= delta-unread 1) "" "s"))))
|
(if (= delta-unread 1) "" "s")
|
||||||
|
(plist-get fav :name))))
|
||||||
(cond
|
(cond
|
||||||
((fboundp 'notifications-notify)
|
((fboundp 'notifications-notify)
|
||||||
;; notifactions available
|
;; notifactions available
|
||||||
|
|
Loading…
Reference in New Issue