alecpl
2008-10-06 a164a2e64b65fbe0729f6d4326b0219f1914c139
program/steps/mail/func.inc
@@ -69,18 +69,9 @@
    $OUTPUT->set_env('junk_mailbox', $CONFIG['junk_mbox']);
  if (!$OUTPUT->ajax_call)
    rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage');
    $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage');
  $OUTPUT->set_pagetitle(rcmail_localize_foldername($IMAP->get_mailbox_name()));
  }
else if ($RCMAIL->action == 'show')
  {
  // set current mailbox in client environment
  $OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name());
  if ($CONFIG['trash_mbox'])
    $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']);
  if (!$OUTPUT->ajax_call)
    rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage');
  }
@@ -99,7 +90,7 @@
  $sort_order = $_SESSION['sort_order'];
  
  // add some labels to client
  rcube_add_label('from', 'to');
  $OUTPUT->add_label('from', 'to');
  // get message headers
  $a_headers = $IMAP->list_headers('', '', $sort_col, $sort_order);
@@ -207,7 +198,7 @@
    {
    $message_icon = $attach_icon = $flagged_icon = '';
    $js_row_arr = array();
    $zebra_class = $i%2 ? 'even' : 'odd';
    $zebra_class = $i%2 ? ' even' : ' odd';
    // set messag attributes to javascript array
    if ($header->deleted)
@@ -247,12 +238,12 @@
    if ($attrib['attachmenticon'] && preg_match("/multipart\/[mr]/i", $header->ctype))
      $attach_icon = $attrib['attachmenticon'];
        
    $out .= sprintf('<tr id="rcmrow%d" class="message%s%s %s">'."\n",
    $out .= sprintf('<tr id="rcmrow%d" class="message%s%s%s%s">'."\n",
                    $header->uid,
                    $header->seen ? '' : ' unread',
                    $header->deleted ? ' deleted' : '',
                    $header->flagged ? ' flagged' : '',
                    $zebra_class);
                    $zebra_class);
    
    $out .= sprintf("<td class=\"icon\">%s</td>\n", $message_icon ? sprintf($image_tag, $skin_path, $message_icon, '') : '');