unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Autorefresh buffer at set interval
       [not found] <87zgkmcwc0.fsf.ref@chinyoka.com>
@ 2022-04-15 13:25 ` Ishe Chinyoka
  2022-04-21 12:43   ` David Bremner
  0 siblings, 1 reply; 3+ messages in thread
From: Ishe Chinyoka @ 2022-04-15 13:25 UTC (permalink / raw)
  To: notmuch


Hi,'

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?

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.  This morning I tried putting
notmuch-poll-and-refresh-this-buffer as a function in the notmuch-hello
hooks.

TIA, this idea of notmuch handling messages by tags is proving to be
addictive such that the last two weeks have seen my productivity going
up as far as dealing with mail is concerned. Thanks for this great work!

Ishe

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Autorefresh buffer at set interval
  2022-04-15 13:25 ` Autorefresh buffer at set interval Ishe Chinyoka
@ 2022-04-21 12:43   ` David Bremner
  2022-04-22  2:21     ` Ishe Chinyoka
  0 siblings, 1 reply; 3+ messages in thread
From: David Bremner @ 2022-04-21 12:43 UTC (permalink / raw)
  To: Ishe Chinyoka, notmuch

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")

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Autorefresh buffer at set interval
  2022-04-21 12:43   ` David Bremner
@ 2022-04-22  2:21     ` Ishe Chinyoka
  0 siblings, 0 replies; 3+ messages in thread
From: Ishe Chinyoka @ 2022-04-22  2:21 UTC (permalink / raw)
  To: David Bremner, notmuch

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")
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-22  2:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87zgkmcwc0.fsf.ref@chinyoka.com>
2022-04-15 13:25 ` Autorefresh buffer at set interval Ishe Chinyoka
2022-04-21 12:43   ` David Bremner
2022-04-22  2:21     ` Ishe Chinyoka

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).