Function: gnus-notifications-notify
gnus-notifications-notify is a byte-compiled function defined in
gnus-notifications.el.gz.
Signature
(gnus-notifications-notify FROM SUBJECT PHOTO-FILE)
Documentation
Send a notification about a new mail.
Return a notification id if any, or t on success.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-notifications.el.gz
(defun gnus-notifications-notify (from subject photo-file)
"Send a notification about a new mail.
Return a notification id if any, or t on success."
(if (fboundp 'notifications-notify)
(gnus-funcall-no-warning
'notifications-notify
:title from
:body subject
:actions '("read" "Read" "mark-read" "Mark As Read")
:on-action 'gnus-notifications-action
:app-icon (gnus-funcall-no-warning
'image-search-load-path "gnus/gnus.png")
:image-path photo-file
:app-name "Gnus"
:category "email.arrived"
:timeout gnus-notifications-timeout)
(message "New message from %s: %s" from subject)
;; Don't return an id
t))