alecpl
2009-12-11 2717f9f68e74277379c065d32bd0771976e49c86
program/steps/mail/func.inc
@@ -458,9 +458,6 @@
    if ($header->flagged)
      $a_msg_flags['flagged'] = 1;
      
    if ($browser->ie)
      $a_msg_cols = rc_utf8_clean($a_msg_cols);
    $OUTPUT->command('add_message_row',
      $header->uid,
      $a_msg_cols,
@@ -522,7 +519,7 @@
  
  if (is_array($quota)) {
    $OUTPUT->add_script('$(document).ready(function(){
   rcmail.set_quota('.json_encode($quota).')});', 'foot');
   rcmail.set_quota('.json_serialize($quota).')});', 'foot');
    $quota = '';
    }
  
@@ -608,6 +605,7 @@
  return html::span($attrib, rcmail_get_mailbox_name_text());
}
function rcmail_get_mailbox_name_text()
{
  global $RCMAIL;
@@ -630,7 +628,7 @@
    
  return $unseen;
}
/**
 * Sets message is_safe flag according to 'show_images' option value
@@ -659,6 +657,7 @@
    }
  }
}
/**
 * Cleans up the given message HTML Body (for displaying)
@@ -791,6 +790,7 @@
  return $data['type'] == 'html' ? $data['body'] : html::tag('pre', array(), $data['body']);
}
/**
 * Handle links and citation marks in plain text message
 *
@@ -902,8 +902,8 @@
  $tagname = $matches[2];
  $tagname = preg_replace(array(
    '/:.*$/',      // Microsoft's Smart Tags <st1:xxxx>
    '/[^a-z0-9_-]/i',   // forbidden characters
    '/:.*$/',         // Microsoft's Smart Tags <st1:xxxx>
    '/[^a-z0-9_\[\]\!-]/i',   // forbidden characters
    ), '', $tagname);
  return $matches[1].$tagname;