summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmail.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-09-14 08:40:51 +0000
committeralecpl <alec@alec.pl>2010-09-14 08:40:51 +0000
commit99b8c1e2ac619665c0514b15d8efb5defabb8090 (patch)
tree049d9580c1f5c8b4aefd40c7a584da7f7b2fa9c2 /program/steps/mail/sendmail.inc
parentfc552950d30d752f856a7c686c4cbc74e4b0da4b (diff)
- Fix format=flowed handling (#1486989) + small improvements in plain messages parsing
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r--program/steps/mail/sendmail.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 23ff571b2..3902b9ad3 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -461,9 +461,9 @@ else {
$message_body = $plugin['body'];
- // compose format=flowed content if enabled and not a reply message
- if (empty($_SESSION['compose']['reply_msgid']) && ($flowed = $RCMAIL->config->get('send_format_flowed', true)))
- $message_body = rcube_message::format_flowed($message_body, $LINE_LENGTH);
+ // compose format=flowed content if enabled
+ if ($flowed = $RCMAIL->config->get('send_format_flowed', true))
+ $message_body = rcube_message::format_flowed($message_body, min($LINE_LENGTH+2, 79));
else
$message_body = rc_wordwrap($message_body, $LINE_LENGTH, "\r\n");