On Fri, 13 Mar 2009, Shawn Walker wrote:
I'll just figure a way to get the message cache update properly.
The way to figure it out is to fix the bug in your code.
I identified the bug. In case you missed it:
either your implementation of IDLE is incorrect, or
(as suggested in my previous me
I never thought you were hiding anything about some secret code to refresh the message cache. Just
asking if you have any suggestions to get the message cache updated.
I never implied IDLE is push, why I used quotes around push. I understand the logic behind IDLE.
What we are doing is giving
There is no "refresh". The concept is meaningless in IMAP, particularly
for number of messages and other mailbox state. Mailbox state is always
pushed from the server to the client.
You need to deal with the underlying cause. If the client state is
"stalled", then your code is in some way f
Mark,
c-client as a IMAP client now does support IDLE, multi-threaded (for IDLE and because the Windows
application is a multi threaded application) and support asynchronous sessions to be able to handle
IDLE. This was done so that the application can use c-client for the IMAP client communica
On Fri, 13 Mar 2009, Shawn Walker wrote:
The application has multiple threads with 2 connections to the IMAP server.
One of them is for IDLE.
This application does not use c-client to do IMAP client. c-client does
not support client-end IDLE.
Presumably, by "thread", you mean threads in a p
The application has multiple threads with 2 connections to the IMAP server. One of them is for
IDLE. When something happen on the IDLE thread, the server send a list of untagged IMAP commands to
the client of what happened. The IDLE thread see that it need to update a folder, but the IDLE
thre
On Thu, 12 Mar 2009, Shawn Walker wrote:
What is the best way to refresh a stale folder state? I'm having a issue
with one thread that contain a stale UID in it's cache.
I don't know what you mean by a "folder state", much less a "stale folder
state" or the act of refreshing such; nor what "m
What is the best way to refresh a stale folder state? I'm having a issue with one thread that
contain a stale UID in it's cache.
I know that I could disconnect from the server and reconnect, but is rather expensive to have to
wait for the server/client to connect.
Regards,
Shawn