Hello,

I am trying to get the ten last received mails, but i cant get it to work : i always get the 10 first received mails.

Here the code :

PHP Code:
     $fe = new FilterEntry(  'eq''source'NULL ,'received'NULL);
    
$filt = new Filter$fe );
    
$ir = new getItemsRequest();
    
$ir->container $id;
    
$ir->view 'default';
    
$ir->filter $filt;
    
$ir->count 10;
    
$ires $gwservice->getItemsRequest($ir); 
Any idea ?