Re: [cone] Automatic refresh for local Maildir's mail counts -- an attempt based on named pipes
Brought to you by:
mrsam
From: Sam V. <mr...@co...> - 2018-03-25 20:38:39
|
Linux-Fan writes: > The attached patch thus implements polling in an own location which > means it only happens every `mailCheckInterval` (worst case: 300) > seconds. > > My questions are now as follows: > > * Is the idea implemented by the attached patch safe enough to be > included in Cone? The general idea is correct. > * What can I do to have the polling mechanism which is already in > use in Cone also poll my named pipe file descriptor such that mail > counts are immediately updated? I think all you need to do is add your named pipe's descriptor to the fds vector, that gets passed to poll(). This will include the named pipe in the list of file descriptor that gets monitored, by the main event loop. |