Version 0.41.0
·
471 commits
to master
since this release
v0.41.0
- [TeamMsgExtractor #357] Fixed an issue where the properties stream being absent would raise an error message that was not clear.
- [TeamMsgExtractor #357] Added a way to suppress
StandardViolationErrorfor poorly created files. This may cause issues you might not expect since this exception is meant to stop the processing for a reason. - [TeamMsgExtractor #223] Finally got around to dealing with signed attachments that are embedded MSG files.
SignedAttachment.datanow returns eitherbytesorMSGFile.SignedAttachmentalso now has aasBytesproperty that will return the bytes that created the signed attachment, regardless of if it is an MSG or not, making it unnecessary to callMSGFile.exportBytesto get the bytes of the embedded MSG file, which can add a small delay to your code. AsAttachmentis a much more complex class, it does not (at least yet) have this property. Also unlikeAttachment,SignedAttachmentwill not throw an exception if the data is an MSG file but is not supported. Instead, it will simply be logged as a exception, but the code will continue. If the data is successfully read as an embedded MSG file, theAttachmentTypewill beAttachmentType.SIGNED_EMBEDDED. - Deprecated
AttachErrorBehaviorin favor of the newErrorBehaviorenum which controls the error behavior for the various parts of the MSG file. Uses of the former will work until the next major version. - Deprecated the
attachmentErrorBehaviorparameter ofMSGFilein favor oferrorBehavior. Uses of the previous will work until the next major version. - Added
treePathproperty toSignedAttachmentto bring it more in line withAttachmentBase. - Fixed bug in rare logging message caused by incorrect type name.
- Removed the
devanddev_classessubmodules, as most of their features are possible using the base code. Additionally, the classes involved because significantly outdated over time. - Removed the
--devargument from the command line. - Changed the message for the standards violation error when an attachment has no specified attachment type and it could not be determined automatically. The error now specifies the path of the attachment that had an issue for easier debugging. Additionally, the log message for it simply not being present has also been changed to show this information.
- Added a dev level log that will output the entire properties mapping if the attachment type is not set. Dev level is 5.
- Fixed a critical error in
Propertiesthat caused the__contains__method to always beFalse. This occurred because it was missing areturnstatement. Fortunately, it looks like only one part of the module was affected due to other parts using a properly written function. - Removed some debug prints that slipped through.
- Changed some parts to use
infor checking that a property exists as opposed tohas_key. The function was there to act more like Python 2. - Deprecated
Properties.has_key. - Removed the
validationsubmodule and all related references. It was pretty outdated and has minimal usage at this point in time. It may come back at some later point. - Changed behavior of
MessageBase.saveso it doesn't save raw when an exception occurs. This behavior may have ended up creating unexpected output which is why it was removed. It was mainly there for debugging in the first place, but is no longer necessary. - Added
__contains__function toNamedclass. - Fixed missing import in
message_base.pythat would only cause problems if something was wrong with the HTML. - Fixed a bad error message appearing when trying to add or use an entry in
OleWriterusing an empty path. - Changed the
InvalidFileFormatErrorfor a missing property stream to aStandardViolationError. - Changed the exception messages for a few exceptions to fix typos and clarify.
- Fixed issues in
_rtf.tokenize_rtfwhich would cause an exception to handle incorrectly and throw an unclear error. - Fixed various small bugs caused by typos.
- Clean up unneeded imports.
- Improved existing
__all__entries and added some where they should be. - Removed default export of the
UnrecognizedMSGTypeErrorexception in favor of exporting the exceptions module. - Removed default export of
properHex. - Improved type checking in many places.
- Fixed issues in
RecurrencePattern.