* Let isValidHost() determine validness of host
- PHP way of doing so (https://github.com/php/php-src/pull/826)
- Improved and shortened regexp a bit
* Give more specific debug message in case host(entry) is invalid
* Rewrite filter_var checks
* Host [[<ipv6>]] is not valid
* 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.
* [fix] fix test cas
fix test case
- testBCCAddressing
* [fix] fix test case testSmtpConnect
* [fix] improve test case about coverage
* [fix] invalid address
* [add] test case for setSMTPInstance
* [add] Add OAuth test case
* [add] createbody test case added
* [add] add case validateaddress test
* [add] attachmentExists test case
* [add] add test case getMailMIME
* [fix] remove not need line
* [fix] fix codes for github comment
* [fix] fix code style for travis.
* [fix] fix code style for travis.
* [fix] fix code style for travis.
* [fix] fix code style for travis.
* [fix] fix code style for travis.
* [fix] fix miss type.
* [fix] fix test case of testMailSend
* [fix] fix test case of testSmtpConnect
* [fix] remove not needed line.
* [fix] remove not need space.
* [fix] fix test case of sendMail
* [fix] fix test case
* [fix] fix test case smtpconnect
* [fix] fix test case of smtpconnect
* [fix] fix test case of smtpconnect
* [fix] fix test case of smtpconnect
* Changed in DKIM signature
- Add flag for using copiedHeaderFields
- config for using extra headers in DKIM signature
* Cleanups after Review
- Don't use masked ampersands in url
- Remove test related artifacts after run
* Complete docs
Upgrade guide and changelog say that idnSupported() is now static, but it actually isn't.
Probably this PR should wait v6.1 or other version where breaking changes are OK.