-
- list($unseen_string, $unseen) = create_unseen_string($real_box, $box_array, $imapConnection);
+ $unseen = 0;
+ $status = array();
+ if (($unseen_notify == 2 && $real_box == 'INBOX') ||
+ $unseen_notify == 3) {
+ $status = create_unseen_string($real_box, $box_array, $imapConnection, $unseen_type );
+ if ($status !== false) {
+ list($unseen_string, $unseen) = $status;
+ } else {
+ list($unseen_string, $unseen) = array(_("Not available"),'');
+ }
+ } else {
+ list($unseen_string, $unseen) = array('','');
+ }