[RCD] Patch

Барсуков Сергей sbars at inbox.ru
Wed Apr 8 09:20:39 CEST 2015


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';
}



More information about the dev mailing list