[ ] Bugfix (non-breaking change which fixes an issue)
[x] New component
[x] Refactoring (no functional changes)
[ ] Documentation-only
What does this implement/fix? Explain your changes.
Previously, PST parsing relied on the listed encodings and failed to parse a message body if it didn't decode. EML/MBOX had implemented falling back to chardectect and finally replacing instead of failing. This implements this behavior for PST parsing too using a new safely_decode() helper method. EML/MBOX parsing has been refactored to use this helper as well.
Link to issue?
N/A
[ ] Issue closed
[ ] Remain open
Pull Request Checklist
Please check if your PR fulfills the following requirements:
[x] Make sure you are requesting to the develop branch. Don't PR to main!
[ ] This contribution has sufficient documentation
[ ] Tests for the changes have been added
[x] All tests pass
How has this been tested?
Operating System: win10
Python Version: 3.9.12
Licensing
[x] I agree that the Mailbag Project and the University at Albany, SUNY can release this code under the MIT license.
Type of Contribution
What does this implement/fix? Explain your changes.
Previously, PST parsing relied on the listed encodings and failed to parse a message body if it didn't decode. EML/MBOX had implemented falling back to chardectect and finally replacing instead of failing. This implements this behavior for PST parsing too using a new
safely_decode()
helper method. EML/MBOX parsing has been refactored to use this helper as well.Link to issue?
N/A
Pull Request Checklist
Please check if your PR fulfills the following requirements:
How has this been tested?
Operating System: win10 Python Version: 3.9.12
Licensing