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
thread has two messages the UID of 100 and 101 (an example). But, UID 101 is doesn't exist anymore,
but UID 102 is on the server. So, the IDLE thread request the message cache for UID 102 but
c-client doesn't know about 102 in it's message cache due that it only know of UID 100 and 101 and
return with a NIL. Hence, the message cache is stale.
The only way that I can get the message cache to throw away it's message cache is to disconnect from
the server and then reconnect to the server and then the message cache will have UID 100 and 102.
What I need is to tell c-client to refresh it's message cache to have UID 100 and 102. Is there a
c-client call that I make that will do that?
Mark Crispin wrote:
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 "message numbers
of a stale folder" may be; nor what a "thread that contains a stale UID
in its cache" may be.
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.
I'm even more bewildered reading this sentence than I am the previous one.
Please explain what behavior that you are seeing, and what behavior you
expect in its place.
Maybe I'm going senile; I haven't a clue as to what you're talking about.
-- Mark --
http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
--
Shawn Walker
Senior Software Developer
Bynari, Inc.
6220 Gaston Ave, Suite 403
Dallas, Tx 75214
http://www.bynari.net
[email protected]
(800) 241-1086
(214) 350-5772 X29
(214) 352-3530 fax
_______________________________________________
Imap-uw mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-uw