PHPMailer/test
Claas Augner 21b35dc49b Use Q-encode to wrap too long headers (#1840)
* Always Q-encode headers exceeding maximum length

Previously, headers exceeding the maximum line length without
any special characters were only folded. This lead to problems
with long filenames (#1469) and long headers in general (#1525).

Now, long headers are always Q-encoded (and still folded).

* Use ASCII as Q-encoding charset if applicable

Previously, headers were Q-encoded using the message
charset, e.g. UTF-8. This is excessive for ASCII
values, as it requires a unicode engine.

Now, we use ASCII if we only find 7-bit characters.

* Separate header encoding from encoding selection

* Use ASCII for B-encoding as well

* Refactor max line length calculation

Previously, we calculated the maximum
line length for header encoding both
for B- and Q-encoding, even though
they share the same limits.

Now, we calculate these once for both.
2019-09-25 08:58:44 +02:00
..
DebugLogTestListener.php Show debug log only when tests fail (#1161) 2017-09-14 15:56:04 +02:00
PHPMailerLangTest.php Update the language directory path (#1639) 2019-02-01 15:38:17 +01:00
PHPMailerTest.php Use Q-encode to wrap too long headers (#1840) 2019-09-25 08:58:44 +02:00
bootstrap.php Big cleanup for Symfony coding style and php-cs-fixer, see #1148 2017-09-07 18:21:09 +02:00
fakepopserver.sh Years & version numbers 2016-04-07 11:04:03 +02:00
fakesendmail.sh Minor fixes, code style 2016-08-31 10:26:06 +02:00
runfakepopserver.sh See what's happening in the shell 2015-11-24 19:04:12 +01:00
testbootstrap-dist.php Big cleanup for Symfony coding style and php-cs-fixer, see #1148 2017-09-07 18:21:09 +02:00