[fetchmail] Patch for IMAP idling where idling is unsupported

Chris Boyle fetchmail-friends@cmb.is-a-geek.org
21 Jul 2003 18:20:43 +0100

Here's a patch I've written: where IDLE is unavailable, it uses periodic
NOOP commands instead (every 28 seconds). Important behavioural change:
the option "idle" will now always result in *some* form of idle. I think
I read somewhere that some servers will unilaterally send status updates
if you just hold the connection open, i.e. NOOPs would be unnecessary,
but that doesn't seem to be the case anywhere I've tried. In any case,
this patch copes with updates both as a response to the NOOPs and
unilaterally sent between them. It functions exactly like normal idling
(N.B. like normal idling, it is single-folder only), and hopefully
includes all the appropriate changes to the documentation. Enjoy. :-)


Chris Boyle - http://people.debian.org/~cmb/
GPG: B7D86E0F, MSN: shortcipher@hotmail.com, ICQ: 24151961,
AIM: kerneloops, Yahoo: kerneloops, IRC: cmb on freenode.net