Thanks David for the pointer to the timer documentation in the Elisp manual. I successfully wrapped the refresh function in the run-with-timer, such that every 15 minutes I automatically check for new mail. The setup now works like a charm. Thanks once again. Ishe David Bremner <david@tethera.net> writes: > Ishe Chinyoka <ishechinyoka@yahoo.com> writes: > >> I am sorry if this is in the documentation, but I am failing to pick >> the right spot. Anyway, which variable can I set to have notmuch-poll >> triggered at a set interval? > > I don't think this currently exists. You could define your own timer > [1]. > >> BTW, I am on Arch and am running the Offlineimap as a systemd timer to >> pull my messages every fifteen minutes. I also have a Notmuch script >> under the ~/.mail/.notmuch/hooks/ that runs every time offlineimap >> completes the refresh. My problem is now that after all this, I can't >> seem to have the Notmuch emacs interface update automatically without me >> doing a manual refresh with "G" keystroke. > > I suspect you only need "g" rather than "G", if you are already running > notmuch new via a hook. > >> This morning I tried putting >> notmuch-poll-and-refresh-this-buffer as a function in the notmuch-hello >> hooks. > > You may want the function notmuch-refresh-all-buffers; that could go in > your timer. > > [1]: (info "(elisp) Timers") > _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org