thomascube
2008-08-14 ac5d15de2946cbd8988c11de0f218aeb1acf58dc
program/steps/mail/func.inc
@@ -529,6 +529,27 @@
  return Q($out);
  }
/**
 *
 */
function rcmail_mailbox_name_display($attrib)
{
    global $RCMAIL;
    if (!$attrib['id'])
        $attrib['id'] = 'rcmmailboxname';
    $RCMAIL->output->add_gui_object('mailboxname', $attrib['id']);
    return html::span($attrib, rcmail_get_mailbox_name_text());
}
function rcmail_get_mailbox_name_text()
{
    global $RCMAIL;
    return rcmail_localize_foldername($RCMAIL->imap->get_mailbox_name());
}
/**
 * Convert the given message part to proper HTML
@@ -563,7 +584,10 @@
        $html = '<head></head>' . $html;
      $html = substr_replace($html, '<meta http-equiv="Content-Type" content="text/html; charset='.RCMAIL_CHARSET.'" />', intval(stripos($html, '</head>')), 0);
    }
    // PHP bug #32547 workaround: remove title tag
    $html = preg_replace('/<title>.*<\/title>/', '', $html);
    // clean HTML with washhtml by Frederic Motte
    $wash_opts = array(
      'show_washed' => false,
@@ -1176,6 +1200,7 @@
  'messages' => 'rcmail_message_list',
  'messagecountdisplay' => 'rcmail_messagecount_display',
  'quotadisplay' => 'rcmail_quota_display',
  'mailboxname' => 'rcmail_mailbox_name_display',
  'messageheaders' => 'rcmail_message_headers',
  'messagebody' => 'rcmail_message_body',
  'messagecontentframe' => 'rcmail_messagecontent_frame',