Ignore:
Timestamp:
Sep 16, 2008 2:05:25 PM (5 years ago)
Author:
alec
Message:
  • Added icons for forwarded/forwarded+replied messages (#1485257)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/func.inc

    r1804 r1807  
    207207    if ($header->answered) 
    208208      $js_row_arr['replied'] = true; 
     209    if ($header->forwarded) 
     210      $js_row_arr['forwarded'] = true; 
    209211    if ($header->flagged) 
    210212      $js_row_arr['flagged'] = true; 
     
    213215    if ($attrib['deletedicon'] && $header->deleted) 
    214216      $message_icon = $attrib['deletedicon']; 
     217    else if ($attrib['repliedicon'] && $header->answered) 
     218      { 
     219      if ($attrib['forwardedrepliedicon'] && $header->forwarded) 
     220        $message_icon = $attrib['forwardedrepliedicon']; 
     221      else 
     222        $message_icon = $attrib['repliedicon']; 
     223      } 
     224    else if ($attrib['forwardedicon'] && $header->forwarded) 
     225      $message_icon = $attrib['forwardedicon']; 
    215226    else if ($attrib['unreadicon'] && !$header->seen) 
    216227      $message_icon = $attrib['unreadicon']; 
    217     else if ($attrib['repliedicon'] && $header->answered) 
    218       $message_icon = $attrib['repliedicon']; 
    219228    else if ($attrib['messageicon']) 
    220229      $message_icon = $attrib['messageicon']; 
     
    297306  if ($attrib['repliedicon']) 
    298307    $OUTPUT->set_env('repliedicon', $skin_path . $attrib['repliedicon']); 
     308  if ($attrib['forwardedicon']) 
     309    $OUTPUT->set_env('forwardedicon', $skin_path . $attrib['forwardedicon']); 
     310  if ($attrib['forwardedrepliedicon']) 
     311    $OUTPUT->set_env('forwardedrepliedicon', $skin_path . $attrib['forwardedrepliedicon']); 
    299312  if ($attrib['attachmenticon']) 
    300313    $OUTPUT->set_env('attachmenticon', $skin_path . $attrib['attachmenticon']); 
     
    368381    $a_msg_flags['unread'] = $header->seen ? 0 : 1; 
    369382    $a_msg_flags['replied'] = $header->answered ? 1 : 0; 
     383    $a_msg_flags['forwarded'] = $header->forwarded ? 1 : 0; 
    370384    $a_msg_flags['flagged'] = $header->flagged ? 1 : 0; 
    371385     
Note: See TracChangeset for help on using the changeset viewer.