diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-20 21:47:19 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-05-20 21:47:19 +0000 |
| commit | f8fdded0bfc5130ab4be15f042718099ab8f1cd4 (patch) | |
| tree | 6a7b4ec5ee45acd2dc8f6dbb21cc1e8e479fba3f /roundcubemail/program/steps | |
| parent | fb85d47919fcb0b5f8fb7a764301a493227333ab (diff) | |
No need for the padding since quoted lines are not wrapped at all
git-svn-id: https://svn.roundcube.net/trunk@3647 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 2 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/sendmail.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index fcb0229df..e44f3db81 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -1176,7 +1176,7 @@ function rcmail_address_string($input, $max=null, $linked=false, $addicon=null) function rcmail_wrap_and_quote($text, $length = 72) { // Rebuild the message body with a maximum of $max chars, while keeping quoted message. - $max = min(78, $length + 8); + $max = min(77, $length + 8); $lines = preg_split('/\r?\n/', trim($text)); $out = ''; diff --git a/roundcubemail/program/steps/mail/sendmail.inc b/roundcubemail/program/steps/mail/sendmail.inc index 774119dcd..2576a66b5 100644 --- a/roundcubemail/program/steps/mail/sendmail.inc +++ b/roundcubemail/program/steps/mail/sendmail.inc @@ -448,7 +448,7 @@ else { if (empty($_SESSION['compose']['reply_msgid']) && ($flowed = $RCMAIL->config->get('send_format_flowed', true))) $message_body = rcube_message::format_flowed($message_body, $LINE_LENGTH); else - $message_body = rc_wordwrap($message_body, min(79, $LINE_LENGTH + 8), "\r\n"); // +8: be generous with quoted lines + $message_body = rc_wordwrap($message_body, $LINE_LENGTH, "\r\n"); $message_body = wordwrap($message_body, 998, "\r\n", true); if (!strlen($message_body)) { |
