[dev] Caching issue

Michael M Slusarz slusarz at horde.org
Thu Sep 6 06:40:24 UTC 2012


Quoting Sandy Herman <sandyherman at gmx.net>:

> 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)?

The uidnext value is probably not being updated when a new mail is  
detected in the mailbox.  Which is plausible since the use case of  
Horde_Imap_Client is mostly for those PHP page accesses that last less  
than a second.  Please file a bug report at bugs.horde.org

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list