| | |
| | | if (!in_array('threads', $a_show_cols)) |
| | | array_unshift($a_show_cols, 'threads'); |
| | | |
| | | $_SESSION['skin_path'] = $RCMAIL->config->get('skin_path'); |
| | | |
| | | // set client env |
| | | $OUTPUT->add_gui_object('messagelist', $attrib['id']); |
| | | $OUTPUT->set_env('autoexpand_threads', intval($RCMAIL->config->get('autoexpand_threads'))); |
| | |
| | | { |
| | | global $RCMAIL; |
| | | |
| | | $skin_path = $_SESSION['skin_path']; |
| | | |
| | | // check to see if we have some settings for sorting |
| | | $sort_col = $_SESSION['sort_col']; |
| | | $sort_order = $_SESSION['sort_order']; |
| | |
| | | $onclick = 'return ' . rcmail_output::JS_OBJECT_NAME . ".command('menu-open', 'messagelistmenu', this, event)"; |
| | | $inner = $RCMAIL->gettext('listoptions'); |
| | | if (is_string($attrib['optionsmenuicon']) && $attrib['optionsmenuicon'] != 'true') { |
| | | $inner = html::img(array('src' => $skin_path . $attrib['optionsmenuicon'], 'alt' => $RCMAIL->gettext('listoptions'))); |
| | | $inner = html::img(array('src' => $RCMAIL->output->abs_url($attrib['optionsmenuicon'], true), 'alt' => $RCMAIL->gettext('listoptions'))); |
| | | } |
| | | $list_menu = html::a(array( |
| | | 'href' => '#list-options', |
| | |
| | | */ |
| | | function rcmail_messagecontent_frame($attrib) |
| | | { |
| | | global $OUTPUT, $RCMAIL; |
| | | global $OUTPUT; |
| | | |
| | | if (empty($attrib['id'])) |
| | | $attrib['id'] = 'rcmailcontentwindow'; |
| | |
| | | $wash_opts = array( |
| | | 'show_washed' => false, |
| | | 'allow_remote' => $p['safe'], |
| | | 'blocked_src' => "./program/resources/blocked.gif", |
| | | 'blocked_src' => 'program/resources/blocked.gif', |
| | | 'charset' => RCUBE_CHARSET, |
| | | 'cid_map' => $cid_replaces, |
| | | 'html_elements' => array('body'), |
| | |
| | | /** |
| | | * return block to show full message headers |
| | | */ |
| | | function rcmail_message_full_headers($attrib, $headers=NULL) |
| | | function rcmail_message_full_headers($attrib) |
| | | { |
| | | global $OUTPUT, $RCMAIL; |
| | | |
| | |
| | | } |
| | | |
| | | // fetch part body |
| | | $body = $MESSAGE->get_part_body($part->mime_id, true); |
| | | $body = $part->mime_id ? $MESSAGE->get_part_body($part->mime_id, true) : $part->body; |
| | | |
| | | // extract headers from message/rfc822 parts |
| | | if ($part->mimetype == 'message/rfc822') { |
| | |
| | | rcmail_output::JS_OBJECT_NAME, rcube::JQ($string)), |
| | | ), |
| | | html::img(array( |
| | | 'src' => $RCMAIL->config->get('skin_path') . $addicon, |
| | | 'src' => $RCMAIL->output->abs_url($addicon, true), |
| | | 'alt' => "Add contact", |
| | | ))); |
| | | } |
| | |
| | | return $out; |
| | | } |
| | | |
| | | function rcmail_message_error($uid=null) |
| | | function rcmail_message_error() |
| | | { |
| | | global $RCMAIL; |
| | | |