[Kde-pim] Bug with KIMAP::IdleJob and GMail IMAP
Gregory Schlomoff
gregory.schlomoff at gmail.com
Thu Sep 9 07:43:47 BST 2010
Hello,
There is a bug with GMail IMAP and KIMAP's IdleJob.
IdleJob::handleResponse waits until both EXISTS and RECENT messages are
received, but from our tests, GMail doesn't send RECENT. So handleResponse
never emits the mailBoxStats signal.
Also, after glancing quickly through the IDLE command RFC (
http://tools.ietf.org/html/rfc2177), there seems to be nothing that
specifies that a server must always send EXISTS and RECENT. Quoting the
RFC:
The IDLE command remains active until the client
> responds to the continuation, and as long as an IDLE command is
> active, the server is now free to send untagged EXISTS, EXPUNGE, and
> other messages at any time.
>
>
So my guess is that the line: if ( d->messageCount>=0 && d->recentCount>=0
) in idleJob::handleResponse is incorrect.
What are your thoughts on this?
Thanks,
Greg
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list