This PR covers most Office 365 emails and also some cases of emails between various Outlook versions.
I've also re-organized the Microsoft splitter-finding code to define a variety of queries in one place (so we can add others easily) and then programmatically check for the existence of any of those queries, taking the first one in the DOM as the top-most splitter and removing everything after it.
Other things included in this PR:
[x] Add test for new example HTML file
[x] Update version of jsdom for tests
[x] This addition also does not handle emails between providers very well (for example: send email from Office 365 to Gmail, reply from Gmail, reply from Office 365 -- gmail quote is stripped but Office 365 quoted text remains. This may not be done in this PR but I'd like to at least add a TODO or a note of this
This PR covers most Office 365 emails and also some cases of emails between various Outlook versions.
I've also re-organized the Microsoft splitter-finding code to define a variety of queries in one place (so we can add others easily) and then programmatically check for the existence of any of those queries, taking the first one in the DOM as the top-most splitter and removing everything after it.
Other things included in this PR:
[x] Add test for new example HTML file
[x] Update version of jsdom for tests
[x] This addition also does not handle emails between providers very well (for example: send email from Office 365 to Gmail, reply from Gmail, reply from Office 365 -- gmail quote is stripped but Office 365 quoted text remains. This may not be done in this PR but I'd like to at least add a TODO or a note of this