5 ms·
Checkout offlineimap. Mutt can then use the synched directory from offlineimap.
by hdfbdtbcdg 7y ago
Checkout offlineimap.
Mutt can then use the synched directory from offlineimap.
- masklinn 7y agoofflineimap is cron-driven though, so it doesn't fetch mail "as soon as it arrives". I don't know that any offline-sync daemons uses IDLE though. isync / mbsync doesn't seem to either.
- cbcoutinho 7y agoI use a systemd timer to handle periodic calls to offlineimap, and that works really well compared to a corn-based work flow.
- masklinn 7y agosystemd timers are a cron-based workflow. A cron-based workflow is when you periodically check for work to do rather than get notified that there's work to do.
- cbcoutinho 7y agoYes that's true that they periodically check for work to do, but cron is not smart enough to know whether a service is already running - a systemd-timer can base it's timer from the point when a service completes. I think cron just fires up a service unless you build in some logic to check if it's running
- JdeBP 7y agoThat's not really relevant. masklinn is contrasting periodic polling schemes like yours with using IDLE.
- naniwaduni 7y agoofflineimap does have IDLE support. It's known to exhibit hard-to-reproduce bugs, though.
- masklinn 7y ago> IDLE support is incomplete and experimental. Bugs may be encountered. That's not "have IDLE support".
- rakoo 7y agoI wrote my own IMAP IDLE watcher (https://github.com/rakoo/ https://github.com/rakoo/). It only watches for IDLE events, all the actual mail retrieval is done by offlineimap. It's simplistic but it does (did) the job.