librelist archives

« back to archive

Messages deleted from IMAP by external client don't reflect in MailCore app search operation until relaunch

Messages deleted from IMAP by external client don't reflect in MailCore app search operation until relaunch

From:
David Hearst
Date:
2014-01-28 @ 20:04
Hi,

I’ve been trying to figure out the right way to get accurate and 
up-to-date search results from an IMAP search. I’m running into some 
confusion in situations where an existing message is deleted by an 
external client. After this happens, I still see that message in my 
MailCore search results for as long as the app keeps running. If I quit my
MailCore app and relaunch it, then I immediately see the message disappear
from search results.

Is there some trick to convincing MCOIMAPSession to clear any current 
knowledge and return absolutely up-to-date search results? Am I missing 
something in my search expression that would make sure I only get current 
state?

Thanks, David

Re: [mailcore] Messages deleted from IMAP by external client don't reflect in MailCore app search operation until relaunch

From:
Hoa V. Dinh
Date:
2014-01-28 @ 20:10
MCOIMAPSession does not keep any cache of the search results.  
What happens if you just disconnect/reconnect your session?

--  
Hoa V. Dinh


On Tuesday, January 28, 2014 at 12:04 PM, David Hearst wrote:

> Hi,
>  
> I’ve been trying to figure out the right way to get accurate and 
up-to-date search results from an IMAP search. I’m running into some 
confusion in situations where an existing message is deleted by an 
external client. After this happens, I still see that message in my 
MailCore search results for as long as the app keeps running. If I quit my
MailCore app and relaunch it, then I immediately see the message disappear
from search results.
>  
> Is there some trick to convincing MCOIMAPSession to clear any current 
knowledge and return absolutely up-to-date search results? Am I missing 
something in my search expression that would make sure I only get current 
state?
>  
> Thanks, David  
>  
>  
> Attachments:  
> - smime.p7s
>  

Re: [mailcore] Messages deleted from IMAP by external client don't reflect in MailCore app search operation until relaunch

From:
David Hearst
Date:
2014-01-28 @ 20:12
could not decode message

Re: [mailcore] Messages deleted from IMAP by external client don't reflect in MailCore app search operation until relaunch

From:
David Hearst
Date:
2014-01-28 @ 21:05
could not decode message