From: Marc G. K. <st...@us...> - 2003-05-30 17:33:34
|
Update of /cvsroot/squirrelmail/squirrelmail/src In directory sc8-pr-cvs1:/tmp/cvs-serv19022/src Modified Files: Tag: SM-1_4-STABLE compose.php Log Message: logmes Index: compose.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/src/compose.php,v retrieving revision 1.319.2.4 retrieving revision 1.319.2.5 diff -u -w -r1.319.2.4 -r1.319.2.5 --- compose.php 28 May 2003 22:38:46 -0000 1.319.2.4 +++ compose.php 30 May 2003 17:17:50 -0000 1.319.2.5 @@ -361,7 +361,9 @@ } else { sqWordWrap($line, $editor_size); $newBody .= $line . "\n"; + } + } $body = $newBody; do_hook('compose_send'); @@ -655,10 +657,14 @@ switch ($action) { case ('draft'): $use_signature = FALSE; + $composeMessage->rfc822_header = $orig_header; $send_to = decodeHeader($orig_header->getAddr_s('to'),false,true); $send_to_cc = decodeHeader($orig_header->getAddr_s('cc'),false,true); $send_to_bcc = decodeHeader($orig_header->getAddr_s('bcc'),false,true); $subject = decodeHeader($orig_header->subject,false,true); +// /* remember the references and in-reply-to headers in case of an reply */ +// $composeMessage->rfc822_header->more_headers['References'] = $orig_header->references; +// $composeMessage->rfc822_header->more_headers['In-Reply-To'] = $orig_header->in_reply_to; $body_ary = explode("\n", $body); $cnt = count($body_ary) ; $body = ''; @@ -1022,21 +1028,21 @@ if ($default_charset == 'iso-2022-jp') { echo "\n\n".($prefix_sig==true? "-- \n":'').mb_convert_encoding($signature, 'EUC-JP'); } else { - echo "\n\n".($prefix_sig==true? "-- \n":'').decodeHeader($signature,false); + echo "\n\n".($prefix_sig==true? "-- \n":'').decodeHeader($signature,false,false); } - echo "\n\n".decodeHeader($body,false,true); + echo "\n\n".decodeHeader($body,false,false); } else { - echo "\n\n".decodeHeader($body,false,true); + echo "\n\n".decodeHeader($body,false,false); if ($default_charset == 'iso-2022-jp') { echo "\n\n".($prefix_sig==true? "-- \n":'').mb_convert_encoding($signature, 'EUC-JP'); }else{ - echo "\n\n".($prefix_sig==true? "-- \n":'').decodeHeader($signature,false,true); + echo "\n\n".($prefix_sig==true? "-- \n":'').decodeHeader($signature,false,false); } } } else { - echo decodeHeader($body,false,true); + echo decodeHeader($body,false,false); } echo '</textarea><br />' . "\n" . ' </td>' . "\n" . |