$radio_list = new radio_list('answered', $answered); $radio_list->add_option('', $ml_doesnt_matter); $radio_list->add_option('ANSWERED', $cmdYes); $radio_list->add_option('UNANSWERED', $cmdNo); echo '</td></tr>'; echo '</table>'; echo '</td></tr>'; echo '<tr><td colspan="2">'; $button = new button($cmdSearch, 'javascript:document.forms[0].submit();'); echo '</td></tr>'; echo '</table>'; $tabtable->print_foot(); if ($query != '') { $messages_display = ''; $msg_count = $mail->search($em_settings['sort_field'], $em_settings['sort_order'], $query); $mail->get_messages($first_row, $max_rows); $filters = array(); //if there are new messages get the filters $email->get_filters($account['id']); while ($email->next_record()) { $filter["field"] = $email->f("field"); $filter["folder"] = $email->f("folder"); $filter["keyword"] = $email->f("keyword"); $filters[] = $filter; } while ($mail->next_message(true)) { $continue = false; //check if message is new and apply users filters to new messages only in the inbox folder. if ($mail->f('new') == 1) { if (strtolower($mailbox) == "inbox") { for ($i = 0; $i < sizeof($filters); $i++) {