Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a periodic hook disconnected from timeout-hook #1930

Open
ronisbr opened this issue Nov 4, 2019 · 0 comments
Open

Add a periodic hook disconnected from timeout-hook #1930

ronisbr opened this issue Nov 4, 2019 · 0 comments
Labels
type:discuss Your views/opinions are requested type:enhancement Feature Request

Comments

@ronisbr
Copy link
Contributor

ronisbr commented Nov 4, 2019

What would you like to be able to do?

Let's say I have a local Maildir that is synced using mbsync. If I only sync after a timeout, then the timeout-hook is fine. On the other hand, suppose that I use imapnotify to sync emails on demand (when they are received) on INBOX only. I would like to set timeout to as low as possible, so that the e-mail is received almost instantly. However, it is also good to perform a full sync (all folders) from time to time because of the possible modifications I am doing to my Maildir directory inside NeoMutt. In this case, it will be very nice to have a hook that is run periodically separated from timeout.

What needs to change in NeoMutt?

I think we just need a periodic-hook to add as many periodic hooks as we want. The syntax can be:

periodic-hook <NAME> <timeout> <command>

Have you tried any alternative methods?

Currently, I am firing a script using startup-hook that is doing this periodic task.

@flatcap flatcap added type:discuss Your views/opinions are requested type:enhancement Feature Request labels Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:discuss Your views/opinions are requested type:enhancement Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants