diff --git a/emailadmin/inc/class.emailadmin_imapbase.inc.php b/emailadmin/inc/class.emailadmin_imapbase.inc.php index 086f83fff5..4da1308e19 100644 --- a/emailadmin/inc/class.emailadmin_imapbase.inc.php +++ b/emailadmin/inc/class.emailadmin_imapbase.inc.php @@ -1247,7 +1247,7 @@ class emailadmin_imapbase // we filter for the combined status of unseen and undeleted, as this is what we show in list try { - $sortResult = $this->getSortedList($_folderName, $_sort=0, 1, array('status'=>array('UNSEEN','UNDELETED')),true,false); + $sortResult = $this->getSortedList($_folderName, $_sort=0, $_reverse=1, array('status'=>array('UNSEEN','UNDELETED')),true,false); $retValue['unseen'] = $sortResult['count']; } catch (Exception $ee)