Releases: TeamMsgExtractor/msg-extractor
Releases · TeamMsgExtractor/msg-extractor
Version 0.30.8
v0.30.8
- Update
imapclient
requirement to>=2.1.0
instead of==2.1.0
. Currently there are no changes that would prevent current future versions from working.
Version 0.30.7
v0.30.7
- [TeamMsgExtractor #239] Fixed msg.py not having
import pathlib
. - After going through the details of the example MSG files provided with the module, specifically unicode.msg, I now am glad I decided to put in some fail-safes in the HTML body processing. One of them does not have an
<html>
,<head>
, nor<body>
tag, and so would have had an error. This will actually prevent the header from injecting properly as well, so a bit of validation before was made necessary to ensure the HTML saving would still work. - Added new exception
BadHtmlError
. - Added new function
utils.validateHtml
. - Updated README credits.
- Changed header logic to generate manually if the header data has been stripped (filled with null bytes) and not just if the stream does not exist.
Version 0.30.6
v0.30.6
- Small adjustments to internal code to make it a bit better.
- Added
Message.getSaveBody
,Message.getSaveHtmlBody
, andMessage.getSaveRtfBody
. These three functions generate their respective bodies that will be used when saving the file, allowing you to retrieve the final products without having to write them to the disk first. All arguments that are passed toMessage.save
that would influence the respective bodies are passed to their respective functions. - I thought I added the documentation for
attachmentsOnly
toMessage.save
but apparently it was missing. Not sure what happened there but I made sure it was added this time. - Added new option to
Message.save
calledcharset
. This is used in the preparation of the HTML body when usingpreparedHtml
. This is also usable with--charset CHARSET
from the command line.
Version 0.30.5
v0.30.5
- [TeamMsgExtractor #225] Added the ability to generate the HTML body from the RTF body if it is encapsulated HTML. If there is no RTF body, then it will do a very basic generation from the plain text body. This process is automatically performed if the HTML body is missing.
- Added the ability for the plain text body to sometimes generate from the RTF body if the plain text body does not exist.
- Added documentation to
Message.save
for theattachmentsOnly
option.
Version 0.30.4
v0.30.4
- [TeamMsgExtractor #233] Added option to
Message.save
to only save the attachments (attachmentsOnly
). This can also be used from the command line with the option--attachments-only
. - Corrected error string for incompatible options in
Message.save
. - Fixed if blocks being nested weirdly in
Message.save
instead of being chained withelif
. Probably an artifact left from adding support for HTML and RTF.
Version 0.30.3
v0.30.3
- [TeamMsgExtractor #232] Updated list of known MSG class types so the module would correctly give
UnsupportedMSGTypeError
instead ofUnrecognizedMSGTypeError
.
Version 0.29.6
v0.29.6
- Corrected error string for incompatible options in
Message.save
.
Version 0.29.5
v0.29.5
- Updated list of known MSG class types so the module would correctly give
UnsupportedMSGTypeError
instead ofUnrecognizedMSGTypeError
.
Version 0.30.2
v0.30.2
- Fixed typo in
utils.knownMsgClass
. - Updated contributing guidelines and pull request template. Pull requests were updated to match the new structure of the module while the guidelines were updated for clarity.
Version 0.30.1
v0.30.1
- [TeamMsgExtractor #102] Added property
MessageBase.htmlBodyPrepared
which provides the HTML body that has been prepared for actual use or conversion to PDF. All attachments that can be injected into the body directly will be injected. - Corrected a mistake in the documentation of
Message.save
. - Fixed issue where the command line parser was not checking for raw in conjunction with other saving options.
- Changed
utils.setupLogging
to usepathlib
. - Improved reliability of the logic in
utils.setupLogging
. - Removed function
utils.getContFileDir
. - Cleaned up plain
Exception
being raised at the end ofutils.injectRtfHeader
if the injection failed. This now raisesRuntimeError
, an error that should be reported so the injection system can be improved. - Added parsing for PtypServerId to
utils.parseType
. - Added
FolderID
,MessageID
, andServerID
todata
. - Added zip output to the command line.
- Added support for PtypMultipleFloatingTime to
utils.parseType
. - Improved documentation of many functions with the exceptions they may raise.
- Changed the way zip files are handled so that files written to them actually have a modification date now.