CRM-21521: fix nested multipart handling
authorElliott Eggleston <ejegg@ejegg.com>
Tue, 5 Dec 2017 16:17:34 +0000 (11:17 -0500)
committerElliott Eggleston <ejegg@ejegg.com>
Mon, 8 Jan 2018 17:27:13 +0000 (12:27 -0500)
commit01467aec24d643e8b8e6d1288f57b5a97f6cdce7
tree4ae57023fb34d00e97b2c84fa092e47d9e4c7ff9
parent06640b27e4f05ea6aa7829aec9466cd1c51ab694
CRM-21521: fix nested multipart handling

When for example a multipart-report email body's first part is
multipart-related, extract the text correctly instead of crashing.

This logic should handle all kinds of weird multipart nesting, up
to MIME_MAX_RECURSION levels deep.
CRM/Utils/Mail/EmailProcessor.php
tests/phpunit/CRM/Utils/Mail/EmailProcessorTest.php
tests/phpunit/CRM/Utils/Mail/data/bounces/test_nested_message.eml [new file with mode: 0644]