Adam Sjøgren via info-gnus-english <info-gnus-english@gnu.org> writes:

> As your approach is giving you problems, maybe it would make sense to
> look into Gnus' demons?
>
>  · http://gnus.org/manual/gnus_119.html#Daemons
>
> I use this:
>
>   ; Demon to fetch email every 5 minutes when Emacs has been idle for 5 
> minutes:
>   (gnus-demon-add-handler 'gnus-demon-scan-news 5 5)
>   ; Demon to send queued email every other minute:
>   (gnus-demon-add-handler 'gnus-delay-send-queue 1 nil)
>   (gnus-demon-init)
>
> To my surprise, the manual doesn't mention gnus-demon-scan-news, which I
> would think was the most obvious one to write about...
>
> Hm, maybe it is obsolete? I guess this is the current way:
>
> ,----[ C-h f gnus-demon-add-rescan RET ]
> | gnus-demon-add-rescan is an autoloaded compiled Lisp function in
> | ‘gnus-demon.el’.
> | 
> | (gnus-demon-add-rescan)
> | 
> | Add daemonic scanning of new articles from all backends.
> `----
>
> ?
>
>
>   Best regards,
>
>     Adam

Fantastic. It seems to work with me just doing this:

(gnus-demon-add-handler 'gnus-demon-scan-news 5 t)

So much time and effort replaced with one line!

Thanks!

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

Reply via email to