| | |
| | | |
| | | function rcmail_create_reply_body($body, $bodyIsHtml) |
| | | { |
| | | global $IMAP, $MESSAGE; |
| | | global $IMAP, $MESSAGE, $OUTPUT; |
| | | |
| | | if (! $bodyIsHtml) |
| | | { |
| | |
| | | { |
| | | $prefix = sprintf("<br /><br />On %s, %s wrote:<br />\n", |
| | | $MESSAGE->headers->date, |
| | | Q($MESSAGE->get_header('from'))); |
| | | htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); |
| | | $prefix .= '<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">'; |
| | | $suffix = "</blockquote>"; |
| | | } |
| | |
| | | |
| | | function rcmail_create_forward_body($body, $bodyIsHtml) |
| | | { |
| | | global $IMAP, $MESSAGE; |
| | | global $IMAP, $MESSAGE, $OUTPUT; |
| | | |
| | | if (!$bodyIsHtml) |
| | | { |
| | | // soft-wrap message first |
| | | $body = wordwrap($body, 80); |
| | | |
| | | |
| | | $prefix = sprintf("\n\n\n-------- Original Message --------\nSubject: %s\nDate: %s\nFrom: %s\nTo: %s\n\n", |
| | | $MESSAGE->subject, |
| | | $MESSAGE->headers->date, |
| | |
| | | "</tbody></table><br>", |
| | | Q($MESSAGE->subject), |
| | | Q($MESSAGE->headers->date), |
| | | Q($MESSAGE->get_header('from')), |
| | | Q($MESSAGE->get_header('to'))); |
| | | htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true), |
| | | htmlspecialchars(Q($MESSAGE->get_header('to'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); |
| | | } |
| | | |
| | | // add attachments |