<<< Date Index >>>     <<< Thread Index >>>

Re: imap_idle



On Wednesday, 14 December 2005 at 00:47, Kyle Wheeler wrote:
> On Tuesday, December 13 at 03:41 PM, quoth Brendan Cully:
> >I've just checked in a fix. If you update, you shouldn't see any more
> >'poll failed' messages, but mutt will still hang if imap_idle is set
> >:)
> 
> Aha! And so it does. Thanks!
> 
> Now, just out of curiosity, why does it still fail? When the response 
> comes back ("+ idling") that it's idling... mutt sends a DONE right 
> away. Doesn't that end the idling? Maybe I'm misunderstanding how that 
> is supposed to work.

same reason as before: it's reading everything from DONE\r\n through
the next command as the IDLE terminator, instead of just DONE\r\n
(that is, it's draining the socket buffer). So it doesn't know mutt's
sent a new command, and mutt doesn't know it doesn't know and stupidly
waits for the answer.

> ~Kyle
> 
> P.S. It's good to see you back and active again!

Thanks! I don't know how long it'll last until January though - most
of the changes I've been making have to do with my awful connectivity
when I'm home :)