Esempio n. 1
0
}
if ($em_settings['sort_field'] == SORTARRIVAL && !$mail->is_imap()) {
    $em_settings['sort_field'] = SORTDATE;
}
if ($em_settings['sort_order'] == 1) {
    $image_string = '<img src="' . $GO_THEME->images['arrow_down'] . '" border="0" />';
    $new_sort_order = 0;
} else {
    $image_string = '<img src="' . $GO_THEME->images['arrow_up'] . '" border="0" />';
    $new_sort_order = 1;
}
if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST['messages'])) {
    switch ($_POST['form_action']) {
        case 'delete':
            if ($mailbox == $account['trash'] || $account['type'] == 'pop3' || $account['trash'] == '') {
                $mail->delete($_POST['messages']);
                //set this var so we can check if unseen messages were deleted
                //if so, the auto mail checker must now too.
                $unseen_state_changed = true;
            } else {
                $mail->move($account['trash'], $_POST['messages']);
            }
            break;
        case 'move':
            $mail->move(smartstrip($_POST['folder']), $_POST['messages']);
            break;
        case 'set_flag':
            switch ($_POST['flag']) {
                case 'read':
                    //set this var so we can check if unseen messages were deleted
                    //if so, the auto mail checker must now too.