[dev] Horde_Imap_Client and fetching vanished messages.

Michael J Rubinsky mrubinsk at horde.org
Fri Jan 6 17:12:30 UTC 2012


The Horde_Imap_Client experience continues:

I'm trying to get a set of uids that have been expunged since a  
specific modseq value.

<code>
// First show the existing state of the INBOX

$imap = $registry->mail->imapOb();
$mbox = new Horde_Imap_Client_Mailbox('INBOX');
$q = new Horde_Imap_Client_Fetch_Query();
$results = $imap->fetch(
     $mbox,
     $q
);

// Output some stats to verify values of these are correct
var_dump($imap->status($mbox,
     Horde_Imap_Client::STATUS_HIGHESTMODSEQ |
     Horde_Imap_Client::STATUS_UIDVALIDITY |
     Horde_Imap_Client::STATUS_UIDNEXT));

var_dump($results);
</code>

<outputs>
array(3) {
   ["uidnext"]=>
   string(5) "91203"
   ["uidvalidity"]=>
   string(10) "1292457115"
   ["highestmodseq"]=>
   string(6) "379323"
}

array(35) {


More information about the dev mailing list