| | |
| | | $text = $html = $sql_arr['signature']; |
| | | |
| | | if ($sql_arr['html_signature']) { |
| | | $h2t = new rcube_html2text($html, false, true); |
| | | $text = trim($h2t->get_text()); |
| | | $text = $RCMAIL->html2text($html, array('links' => false)); |
| | | $text = trim($text); |
| | | } |
| | | else { |
| | | $t2h = new rcube_text2html($text, false); |
| | |
| | | if ($part->ctype_secondary == 'html') { |
| | | // use html part if it has been used for message (pre)viewing |
| | | // decrease line length for quoting |
| | | $len = $compose_mode == RCUBE_COMPOSE_REPLY ? $LINE_LENGTH-2 : $LINE_LENGTH; |
| | | $txt = new rcube_html2text($body, false, true, $len); |
| | | $body = $txt->get_text(); |
| | | $len = $compose_mode == RCUBE_COMPOSE_REPLY ? $LINE_LENGTH-2 : $LINE_LENGTH; |
| | | $body = $RCMAIL->html2text($body, array('width' => $len)); |
| | | } |
| | | else { |
| | | if ($part->ctype_secondary == 'plain' && $part->ctype_parameters['format'] == 'flowed') { |
| | |
| | | $suffix = '</blockquote>'; |
| | | } |
| | | else { |
| | | $suffix = '</blockquote><p></p>'; |
| | | $suffix = '</blockquote><p><br/></p>'; |
| | | } |
| | | } |
| | | |