There are an error in function rcmail_message_list_smart_column_name in module func.inc

Good function looks like this

function rcmail_message_list_smart_column_name()
{
    global $RCMAIL;

    $delim       = $RCMAIL->storage->get_hierarchy_delimiter();
$mbox = $RCMAIL->output->get_env('mailbox') ?: $RCMAIL->storage->get_folder();
    $sent_mbox   = $RCMAIL->config->get('sent_mbox');
    $drafts_mbox = $RCMAIL->config->get('drafts_mbox');

if (((strpos($mbox.$delim, $sent_mbox.$delim) === false) || (strpos($mbox.$delim, $drafts_mbox.$delim) === false))
        && (strpos(strtoupper($mbox.$delim), 'INBOX'.$delim) === false)
    ) {
        return 'to';
    }

    return 'from';
}

_______________________________________________
Roundcube Development discussion mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/dev

Reply via email to