Changeset 363 in subversion


Ignore:
Timestamp:
Nov 9, 2006 1:55:54 PM (7 years ago)
Author:
thomasb
Message:

Fixed encoding issues and delete-on-reply problem

File:
1 edited

Legend:

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

    r355 r363  
    7777  $MESSAGE['subject'] = $IMAP->decode_header($MESSAGE['headers']->subject); 
    7878  $MESSAGE['parts'] = $IMAP->get_mime_numbers($MESSAGE['structure']); 
    79  
     79   
    8080  if ($compose_mode == RCUBE_COMPOSE_REPLY) 
    8181    { 
     
    172172    // get recipent address(es) out of the message headers 
    173173    if ($header=='to' && !empty($MESSAGE['headers']->replyto)) 
    174       $fvalue = $IMAP->decode_header($MESSAGE['headers']->replyto); 
     174      $fvalue = $MESSAGE['headers']->replyto; 
    175175 
    176176    else if ($header=='to' && !empty($MESSAGE['headers']->from)) 
    177       $fvalue = $IMAP->decode_header($MESSAGE['headers']->from); 
     177      $fvalue = $MESSAGE['headers']->from; 
    178178 
    179179    // add recipent of original message if reply to all 
    180180    else if ($header=='cc' && !empty($MESSAGE['reply_all'])) 
    181181      { 
    182       if ($v = $IMAP->decode_header($MESSAGE['headers']->to)) 
     182      if ($v = $MESSAGE['headers']->to) 
    183183        $fvalue .= $v; 
    184184 
    185       if ($v = $IMAP->decode_header($MESSAGE['headers']->cc)) 
     185      if ($v = $MESSAGE['headers']->cc) 
    186186        $fvalue .= (!empty($fvalue) ? ', ' : '') . $v; 
    187187      } 
     
    213213    if ($header=='bcc' && !empty($MESSAGE['headers']->bcc)) 
    214214      $fvalue = $IMAP->decode_header($MESSAGE['headers']->bcc); 
    215  
    216215    } 
    217216 
     
    254253    $MESSAGE['FROM'] = array(); 
    255254 
    256     $a_to = $IMAP->decode_address_list($MESSAGE['headers']->to);         
     255    $a_to = $IMAP->decode_address_list($MESSAGE['headers']->to); 
    257256    foreach ($a_to as $addr) 
    258257      { 
     
    415414  $out = $form_start ? "$form_start\n" : ''; 
    416415 
    417   $saveid = new hiddenfield(array('name' => '_draft_saveid', 'value' => str_replace(array('<','>'),"",$MESSAGE['headers']->messageID) )); 
     416  $saveid = new hiddenfield(array('name' => '_draft_saveid', 'value' => $compose_mode==RCUBE_COMPOSE_DRAFT ? str_replace(array('<','>'), "", $MESSAGE['headers']->messageID) : '')); 
    418417  $out .= $saveid->show(); 
    419418 
Note: See TracChangeset for help on using the changeset viewer.