thomascube
2005-10-20 7902df457d3401c83f78a6ddd48df1a7f07f68b1
program/steps/mail/func.inc
@@ -198,11 +198,15 @@
  $out = '';
  foreach ($arrFolders as $key=>$folder)
    {
    // shorten the folder name to a given length
    if ($maxlength && $maxlength>1)
      $foldername = abbrevate_string($folder['name'], $maxlength);
    $folder_lc = strtolower($folder['id']);
    if (in_array($folder_lc, $special))
      $foldername = rcube_label($folder_lc);
    else
      $foldername = $folder['name'];
    // shorten the folder name to a given length
    if ($maxlength && $maxlength>1)
      $foldername = abbrevate_string($foldername, $maxlength);
    $out .= sprintf('<option value="%s">%s%s</option>'."\n",
                    $folder['id'],
@@ -251,7 +255,7 @@
  $out .= "<thead><tr>\n<td class=\"icon\">&nbsp;</td>\n";
 
  foreach ($a_show_cols as $col)
    $out .= '<td class="'.$col.'">' . rcube_label($col) . "</td>\n";
    $out .= '<td class="'.$col.'">' . rep_specialchars_output(rcube_label($col)) . "</td>\n";
  $out .= '<td class="icon">'.($attrib['attachmenticon'] ? sprintf($image_tag, $skin_path, $attrib['attachmenticon'], '') : '')."</td>\n";
  $out .= "</tr></thead>\n<tbody>\n";
@@ -303,13 +307,13 @@
      if ($col=='from' || $col=='to')
        $cont = rep_specialchars_output(rcmail_address_string($header->$col, 3, $attrib['addicon']));
      else if ($col=='subject')
        $cont = rep_specialchars_output($IMAP->decode_header($header->$col));
        $cont = rep_specialchars_output($IMAP->decode_header($header->$col), 'html', 'all');
      else if ($col=='size')
        $cont = show_bytes($header->$col);
      else if ($col=='date')
        $cont = format_date($header->date); //date('m.d.Y G:i:s', strtotime($header->date));
      else
        $cont = rep_specialchars_output($header->$col);
        $cont = rep_specialchars_output($header->$col, 'html', 'all');
        
     $out .= '<td class="'.$col.'">' . $cont . "</td>\n";
      }
@@ -377,13 +381,13 @@
      if ($col=='from' || $col=='to')
        $cont = rep_specialchars_output(rcmail_address_string($header->$col, 3));
      else if ($col=='subject')
        $cont = rep_specialchars_output($IMAP->decode_header($header->$col));
        $cont = rep_specialchars_output($IMAP->decode_header($header->$col), 'html', 'all');
      else if ($col=='size')
        $cont = show_bytes($header->$col);
      else if ($col=='date')
        $cont = format_date($header->date); //date('m.d.Y G:i:s', strtotime($header->date));
      else
        $cont = rep_specialchars_output($header->$col);
        $cont = rep_specialchars_output($header->$col, 'html', 'all');
          
      $a_msg_cols[$col] = $cont;
      }
@@ -813,7 +817,7 @@
      $header_value = rep_specialchars_output($IMAP->decode_header($headers[$hkey]), '', 'all');
    $out .= "\n<tr>\n";
    $out .= '<td class="header-title">'.rcube_label($hkey).":&nbsp;</td>\n";
    $out .= '<td class="header-title">'.rep_specialchars_output(rcube_label($hkey)).":&nbsp;</td>\n";
    $out .= '<td class="'.$hkey.'" width="90%">'.$header_value."</td>\n</tr>";
    $header_count++;
    }