Merge pull request #2612 from seanfarley/smf/alert

mu4e: add support for macOS notifications
This commit is contained in:
Dirk-Jan C. Binnema 2023-12-22 21:27:45 +02:00 committed by GitHub
commit eda3b9397f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ support."
(if (= delta-unread 1) "" "s")
(plist-get fav :name))))
(cond
((fboundp 'do-applescript)
(do-applescript
(format "display notification %S with title %S" body title)))
((fboundp 'notifications-notify)
;; notifications available
(setq mu4e--notification-id