[dev] Caching issue

Sandy Herman sandyherman at gmx.net
Sat Sep 1 14:57:46 UTC 2012


Hello,

I have a problem using "Imap_Library":
After fetching an email, I get a cached "status" of the mailbox:

1: $status = $client->status( $box, Horde_Imap_Client::STATUS_UIDNEXT );
     $status['uidnext']   is e.g. 1000
2: $client->fetch( $box, $query, $options );
     Fetching new mails
3: New email arrives on the server
4: $status = $client->status( $box, Horde_Imap_Client::STATUS_UIDNEXT );
     $status['uidnext']   is still 1000

Expected result: $status['uidnext'] should be 1001 because a new
email arrived on the server.
Is there a chance to flush the cache after fetching an email (step 2)?

Thanks a lot
Sandy




More information about the dev mailing list