On Thu 05-Dec-2019 at 00:45:26 +01, William Henderson 
<wmhender...@freeshell.org> wrote: 

> ;; AUTOMATICALLY CHECK MAILPERIODICALLY
> (add-hook 'gnus-startup-hook
>   '(lambda ()
>      (gnus-demon-init)
>      (setq gnus-demon-timestep 1)  ;; each timestep is 1 second
>      ;; Check for new mail every 300 timesteps (5 minute)
>      (gnus-demon-add-handler 'gnus-demon-scan-news 300 t)
>      (gnus-demon-add-handler 'gnus-demon-scan-mail 300 t)
>
>      ;; Don't crash gnus if disconnected
>      (defadvice gnus-demon-scan-news (around gnus-demon-timeout activate)
>        "Timeout for Gnus."
>        (with-timeout
>        (120 (message "Gnus timed out."))
>      ad-do-it))))
>

Thanks for the detailed information. I am wondering if the use of the
demon does not block emacs?


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to