stable

Clone or download

Read-only

Remove usage of PEAR Mail_Mime in the forumml plugin

The usage of PEAR Mail_Mime is replaced by 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 the RedHat/Fedora and Debian/Ubuntu worlds). This is part of request #12126: Move away from PEAR Mail_Mime library Change-Id: I8b19ee9d4de663f6274b826a4cb4e6dc445c366b

Modified Files

Name
M plugins/forumml/bin/mail2dbng.php +4 −17 Go to diff View file
A plugins/forumml/composer.json +18 −0 Go to diff View file
A plugins/forumml/composer.lock +102 −0 Go to diff View file
D plugins/forumml/include/ForumMLInsert.class.php +0 −380 Go to diff View file
D plugins/forumml/include/ForumML_mimeDecode.class.php +0 −122 Go to diff View file
A plugins/forumml/include/Incoming/IncomingAttachment.php +72 −0 Go to diff View file
A plugins/forumml/include/Incoming/IncomingMail.php +65 −0 Go to diff View file
A plugins/forumml/include/Incoming/IncomingMailBody.php +34 −0 Go to diff View file
A plugins/forumml/include/Incoming/IncomingMailBodyHTML.php +50 −0 Go to diff View file
A plugins/forumml/include/Incoming/IncomingMailBodyText.php +50 −0 Go to diff View file
A plugins/forumml/include/MessageArchiver.php +226 −0 Go to diff View file
D plugins/forumml/include/autoload.php +0 −28 Go to diff View file
M plugins/forumml/include/forummlPlugin.class.php +1 −1 Go to diff View file
A plugins/forumml/phpunit/.simpletest_skip +0 −0 Go to diff View file
A plugins/forumml/phpunit/Incoming/IncomingMailParsingTest.php +136 −0 Go to diff View file
R plugins/forumml/tests/_fixtures/samples/attachment_only.mbox Go to diff View file
R plugins/forumml/tests/_fixtures/samples/forwarded_email.mbox Go to diff View file
R plugins/forumml/tests/_fixtures/samples/html_with_inline_content_and_attch_in_html_only.mbox Go to diff View file
R plugins/forumml/tests/_fixtures/samples/html_with_inline_content_and_attch_in_text_plus_html.mbox Go to diff View file
R plugins/forumml/tests/_fixtures/samples/html_with_inline_content_in_html_only.mbox Go to diff View file
R plugins/forumml/tests/_fixtures/samples/html_with_inline_content_in_text_plus_html.mbox Go to diff View file
A plugins/forumml/phpunit/Incoming/_fixtures/samples/pure_html_in_html_only.mbox +49 −0 Go to diff View file
A plugins/forumml/phpunit/Incoming/_fixtures/samples/pure_html_text_plus_html.mbox +64 −0 Go to diff View file
A plugins/forumml/phpunit/Incoming/_fixtures/samples/pure_text.mbox +40 −0 Go to diff View file
R plugins/forumml/tests/_fixtures/samples/text_plus_attachment.mbox Go to diff View file
A plugins/forumml/phpunit/MessageArchiverTest.php +73 −0 Go to diff View file
A plugins/forumml/phpunit/bootstrap.php +21 −0 Go to diff View file
D plugins/forumml/tests/ForumML_InsertTest.php +0 −247 Go to diff View file
D plugins/forumml/tests/_fixtures/samples/pure_html_in_html_only.mbox +0 −49 Go to diff View file
D plugins/forumml/tests/_fixtures/samples/pure_html_text_plus_html.mbox +0 −64 Go to diff View file
D plugins/forumml/tests/_fixtures/samples/pure_text.mbox +0 −40 Go to diff View file
M plugins/forumml/www/forumml_utils.php +8 −8 Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 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