Ejemplo n.º 1
0
         }
         break;
     case 'archive':
         $mail->archived = 1;
         if (!$mail->date_read) {
             $mail->date_read = CMbDT::dateTime();
         }
         break;
     case 'unfavour':
         $mail->favorite = 0;
         break;
     case 'favour':
         $mail->favorite = 1;
         break;
     case 'delete':
         if ($msg = $mail->delete()) {
             CAppUI::stepAjax($msg, UI_MSG_ERROR);
         }
         break;
     case 'mark_read':
         $mail->date_read = CMbDT::dateTime();
         break;
     case 'mark_unread':
         $mail->date_read = '';
         break;
     default:
         break;
 }
 if ($action != 'delete') {
     if ($msg = $mail->store()) {
         CAppUI::stepAjax($msg, UI_MSG_ERROR);