Repository navigation
Releases
1.10.5: se7enxweb/expcomponents-mail, Exponential's fork of Zeta Components Mail
Tests only, no change to the library.
- Fixed: The tests of tests/local_smtp run on PHP 7.1 to 7.3 again. 1.10.4 started the fake SMTP server with an argument list, which proc_open() takes only from PHP 7.4 on, so all 39 SMTP tests errored on PHP 7.3. The server is now started through a command line built with escapeshellarg().
CI on the tagged commit f623228: https://github.com/se7enxweb/expcomponents-mail/actions/runs/45738163245 (Tests) and https://github.com/se7enxweb/expcomponents-mail/actions/runs/45738163254 (CI).
1.10.4: se7enxweb/expcomponents-mail, Exponential's fork of Zeta Components Mail
Tests only, no change to the library.
- Fixed: The fake SMTP server of tests/local_smtp is started the way the Exponential kernel tests start their loopback servers: it holds none of the test process's descriptors (flock()ed files, the pipe the test output goes to), a guarding shell stops it on TERM and as soon as the test process is gone, and its port line is awaited for at most 10 seconds instead of forever. Before, a test run that died before its tearDown left the server running until its own accept timeout, holding the test output pipe open.
- Added: tests/local_smtp/fake_smtp_server_isolation_test.php proves both (no inherited lock file, no server left after the test process is killed).
- Added: A pull request template with the Upstream, Series, Depends on and Changelog lines of a port.
Tested: PHP 7.4, 8.0 and 8.5 on the node (tests/local_smtp 39 tests OK); GitHub Actions PHP 7.4 and 8.0 to 8.5 green: https://github.com/se7enxweb/expcomponents-mail/actions/runs/45734874362
1.10.3: se7enxweb/expcomponents-mail, Exponential's fork of Zeta Components Mail
se7enxweb/expcomponents-mail 1.10.3 is Exponential's fork of Zeta Components Mail. Install: composer require se7enxweb/expcomponents-mail:~1.10.3
Changes
-
Fixed: SMTP rejects envelope addresses (MAIL FROM, RCPT TO) which could
inject SMTP commands: line breaks, NUL, angle brackets and a quoted local
part with spaces or control characters (pull request #1).BEHAVIOUR CHANGE: an address with a quoted local part that holds a space
(for example "john doe"@example.com) is refused by the SMTP transport with
an ezcMailTransportException, where it was sent before. Such addresses are
valid in RFC 5321 but almost never used; a caller that must send to one
needs to catch the exception. -
Fixed: SMTP normalises line endings to CRLF before dot-stuffing, so a lone
LF or CR can no longer smuggle a "." line that ends the DATA command early
(pull request #2). -
Fixed: SMTP always sends EHLO and falls back to HELO only when the server
rejects EHLO (pull request #3). -
Fixed: SMTP tries the next authentication method if the server rejects one
(pull request #4). -
Added: tests/local_smtp, one fake SMTP server (tests/local_smtp/fake_smtp_server.php)
and one test case base class shared by the new SMTP tests; run them with
vendor/bin/phpunit --test-suffix _test.php tests/local_smtp (they also run
in the full suite).
Verified
Test suite on PHP 7.4, 8.0 and 8.5 on the node (391 tests; the only failures are two unreadable-attachment tests that fail as root, as on 1.10.2); the 37 fake SMTP server tests pass on PHP 7.4 and 8.0 to 8.5; GitHub Actions green on the release commit.
1.10.2: se7enxweb/expcomponents-mail, Exponential's fork of Zeta Components Mail
se7enxweb/expcomponents-mail 1.10.2 is Exponential's fork of Zeta Components Mail (zetacomponents/mail), maintained by 7x and the Exponential Foundation under the Apache License 2.0. It replaces zetacomponents/mail; the class names (ezc*) and the API are unchanged.
Install: composer require se7enxweb/expcomponents-mail:~1.10.2
Changes
- Renamed: The package is se7enxweb/expcomponents-mail, the Exponential
fork of Zeta Components Mail, maintained by 7x (se7en.x) and the
Exponential Foundation. It replaces zetacomponents/mail, so packages
that require the upstream name keep working. Class names (ezc*) are
unchanged. - Updated: Requirements on other Zeta Components point to their Exponential
forks (se7enxweb/expcomponents-base), which replace the upstream packages. - Updated: composer.json states the license (Apache-2.0) and the PHP
versions; the component is tested on PHP 7.4 to 8.5. - Added: NOTICE keeps the upstream copyright notices and names the fork;
README.md describes the fork. - Added: A GitHub Actions workflow running the test suite on PHP 7.4 to 8.5.