Skip to content

Suggested configuration not working

Hi,

After investigating a bit why notifications were not emitted despite using the suggested configuration:

(require 'gnus-desktop-notify)
(gnus-desktop-notify-mode)
(gnus-demon-add-scanmail)

Or, using a faster refresh rate to test:

(require 'gnus-desktop-notify)
(gnus-desktop-notify-mode)
(gnus-demon-add-handler 'gnus-demon-scan-mail 5 nil)

The gnus-demon-scan-mail does not run any gnus hook, so gnus-desktop-notify-check never gets called.

I believe the default configuration should use something like:

(require 'gnus-desktop-notify)
(gnus-desktop-notify-mode)
(gnus-demon-add-handler 'gnus-group-get-new-news 10 0)  ;every 10 minutes

e.g., replace gnus-demon-scan-mail with gnus-group-get-new-news, which does run hooks.