Re: [Feature request/hacking hand-holding] built-in repeated polling?
mailbox synchronizer
Brought to you by:
ossi
|
From: Sabahattin G. <lis...@me...> - 2022-01-21 12:39:16
|
On 19 Jan 2022, at 13:00, Oswald Buddenhagen <osw...@gm...> wrote: > On Wed, Jan 19, 2022 at 11:20:10AM +0000, Simão Afonso wrote: >> Since this is coming up, I would like this "daemon mode" to use IDLE to >> subscribe to the Inbox mailboxes, and run the equivalent of `mbsync >> ACCOUNT` when new messages come up. >> > that's an option, but it's a whole different caliber. > it's also in the TODO and has been previously discussed. ;) > >> The performance improvements here would be to reuse the server >> connection, >> I'm almost sure that dominates the sync process when there >> are no changes. >> > only when you sync only new messages, or keep relatively empty mailboxes. otherwise determining the status quo dominates vastly. this could be improved with the QRESYNC extension, as discussed here quite recently. Yes. Or, multiple connections could be maintained to monitor each (important/subscribed, perhaps) folder on the server. Impolite but, in service of a nearly-instantaneous update of the local maildirs, could be well worth it. The high cost of iterating over each folder, getting the statuses, doing the local comparison, then syncing changes is, I would imagine, the real reason you’d want a “daemon” mode. Well, I can dream … Sorry about that—simply had to get my twopenneth in there. :) Cheers, Sabahattin |