The line 566 wants to conform with the RFC 2822 in not allowing any lines being longer than 998 characters -- but fails.
There should be a TRUE as last paramter of wordwrap()
for really breaking at 996 chars (see http://www.php.net/manual/en/function.wordwrap.php).
Therefore
<?php
// Break really long words at the maximum width allowed.
$line = wordwrap($line, 996 - $values['length'], $values['soft'] ? " \n": "\n");
?>
should become
<?php
// Break really long words at the maximum width allowed.
$line = wordwrap($line, 996 - $values['length'], $values['soft'] ? " \n": "\n", TRUE);
?>
Patch attached.
Cheers, Alex
Attachment | Size | Status | Test result | Operations |
---|---|---|---|---|
d7-mail-wordwrap.patch | 602 bytes | Ignored: Check issue status. | None | None |