stable

Clone or download

Read-only

Tracker email gateway is compatible with PHP 7

The usage of PEAR Mail_Mime is replaced with php-mime-mail-parser. While the latest version of PEAR Mail_Mime is announced compatible with PHP 7.2 it can only be found on PEAR. To ease future maintenance a library available on Packagist is now used. It avoids the need of repackaging PEAR Mail_Mime or to maintain a version of PEAR Mail_Mime that can be retrieved with Composer. php-mime-mail-parser depends on the PHP extension mailparse which is generally available in the repositories of distributions (at least it's the case in RedHat/Fedora and Debian/Ubuntu worlds). This is part of request #12126: Move away from PEAR Mail_Mime library Change-Id: I15c8fc46ef76dd50cab947e38bce1184863d58af

Modified Files

Name
M plugins/tracker/bin/emailgateway.php +4 −5 Go to diff View file
M plugins/tracker/composer.json +4 −2 Go to diff View file
M plugins/tracker/composer.lock +84 −3 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMail.php +118 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMessage.class.php +11 −14 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMessageFactory.php +19 −11 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMessageInsecureBuilder.class.php +19 −25 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/IncomingMessageTokenBuilder.class.php +10 −7 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/MailGateway.class.php +21 −26 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/MailGatewayBuilder.php +15 −16 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/MailGatewayFilter.php +9 −8 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/MailGateway/Notifier.class.php +21 −12 Go to diff View file
D plugins/tracker/include/Tracker/Artifact/MailGateway/Parser.class.php +0 −85 Go to diff View file
A plugins/tracker/phpunit/Tracker/Artifact/MailGateway/IncomingMailTest.php +65 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Artifact/MailGateway/Tracker_Artifact_MailGateway_IncomingMessageFactoryTest.php +66 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Artifact/MailGateway/_fixtures/expected_followup.html.txt +304 −0 Go to diff View file
A plugins/tracker/phpunit/Tracker/Artifact/MailGateway/_fixtures/expected_followup.text.txt +48 −0 Go to diff View file
R plugins/tracker/tests/Tracker/Artifact/MailGateway/_fixtures/mail-iso-8859-1.txt Go to diff View file
R plugins/tracker/tests/Tracker/Artifact/MailGateway/_fixtures/reply-comment.(plain+html)+attachment.eml Go to diff View file
R plugins/tracker/tests/Tracker/Artifact/MailGateway/_fixtures/reply-comment.html+plain.eml Go to diff View file
R plugins/tracker/tests/Tracker/Artifact/MailGateway/_fixtures/reply-comment.html.eml Go to diff View file
R plugins/tracker/tests/Tracker/Artifact/MailGateway/_fixtures/reply-comment.plain+html.eml Go to diff View file
A plugins/tracker/phpunit/Tracker/Artifact/MailGateway/_fixtures/reply-comment.plain.eml +76 −0 Go to diff View file
M plugins/tracker/tests/Tracker/Artifact/MailGateway/IncomingMessageInsecureBuilderTest.php +86 −113 Go to diff View file
M plugins/tracker/tests/Tracker/Artifact/MailGateway/MailGatewayBuilderTest.php +9 −10 Go to diff View file
M plugins/tracker/tests/Tracker/Artifact/MailGateway/MailGatewayFilterTest.php +20 −14 Go to diff View file
M plugins/tracker/tests/Tracker/Artifact/MailGateway/MailGatewayTest.php +25 −22 Go to diff View file
D plugins/tracker/tests/Tracker/Artifact/MailGateway/ParserTest.php +0 −45 Go to diff View file
D plugins/tracker/tests/Tracker/Artifact/MailGateway/ParserTokenMailTest.php +0 −129 Go to diff View file
M tools/rpm/tuleap.rhel6.spec +1 −1 Go to diff View file
M tools/rpm/tuleap.rhel7.spec +1 −1 Go to diff View file