Changeset 363 in subversion
- Timestamp:
- Nov 9, 2006 1:55:54 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/steps/mail/compose.inc
r355 r363 77 77 $MESSAGE['subject'] = $IMAP->decode_header($MESSAGE['headers']->subject); 78 78 $MESSAGE['parts'] = $IMAP->get_mime_numbers($MESSAGE['structure']); 79 79 80 80 if ($compose_mode == RCUBE_COMPOSE_REPLY) 81 81 { … … 172 172 // get recipent address(es) out of the message headers 173 173 if ($header=='to' && !empty($MESSAGE['headers']->replyto)) 174 $fvalue = $ IMAP->decode_header($MESSAGE['headers']->replyto);174 $fvalue = $MESSAGE['headers']->replyto; 175 175 176 176 else if ($header=='to' && !empty($MESSAGE['headers']->from)) 177 $fvalue = $ IMAP->decode_header($MESSAGE['headers']->from);177 $fvalue = $MESSAGE['headers']->from; 178 178 179 179 // add recipent of original message if reply to all 180 180 else if ($header=='cc' && !empty($MESSAGE['reply_all'])) 181 181 { 182 if ($v = $ IMAP->decode_header($MESSAGE['headers']->to))182 if ($v = $MESSAGE['headers']->to) 183 183 $fvalue .= $v; 184 184 185 if ($v = $ IMAP->decode_header($MESSAGE['headers']->cc))185 if ($v = $MESSAGE['headers']->cc) 186 186 $fvalue .= (!empty($fvalue) ? ', ' : '') . $v; 187 187 } … … 213 213 if ($header=='bcc' && !empty($MESSAGE['headers']->bcc)) 214 214 $fvalue = $IMAP->decode_header($MESSAGE['headers']->bcc); 215 216 215 } 217 216 … … 254 253 $MESSAGE['FROM'] = array(); 255 254 256 $a_to = $IMAP->decode_address_list($MESSAGE['headers']->to); 255 $a_to = $IMAP->decode_address_list($MESSAGE['headers']->to); 257 256 foreach ($a_to as $addr) 258 257 { … … 415 414 $out = $form_start ? "$form_start\n" : ''; 416 415 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) : '')); 418 417 $out .= $saveid->show(); 419 418
Note: See TracChangeset
for help on using the changeset viewer.
