-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 0.35.0 #276
Merged
Merged
Version 0.35.0 #276
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
v0.35.0
Appointment
objects to include all of the objects specified in [MS-OXOCAL]. Name changed toAppointmentMeeting
. Completed support for Appointment objects, including the ability to save them.mimetype-magic
(installable using themime
extra) which helps to identify attachments that do not give a mime-type.allowFallback
will change the message to specify that current options were not usable for getting a valid body.extract_msg.constants.NULL_DATE
to represent this that you can use in your code to not have to worry about changing your code if we check it.enums
.extract_msg.data
to submoduleextract_msg.structures
.python_requires
to setup.py as I noticed that it was missing.MessageBase
.getSaveXBody
functions have also been moved down to be defined inMessageBase
. If the extension class needs to specify custom behaviors for creating the save bodies, these functions will need to be overridden.MessageBase
(being the lowest one to currently contain bodies) has a few new properties. These properties represent the injection strings that will be injected into the bodies for the header, with an additional property to specify what properties map to what part of the format string. SeeMessageBase.headerFormatProperties
for more information and an example of how to implement this in your own class.Message
intoMessageBase
for convenience.Message
exists now for specific checking and for future specializations. This also means that anything that is aMessageBase
now has the entire framework for saving built-in, with easy way to change details.Contact
.Contact
. Saving, though it exists, is rather minimal and is limited to plain text and HTML.Contact
class's properties.Contact
properties to better match the microsoft names.firstName
->givenName
.lastName
->surname
.businessPhone
->businessTelephoneNumber
Task
properties being incorrect.Properties.date
to only return the submit time. This is to ensure messages that were never sent do not have a sent date.MessageBase.date
to only return a send date if the message has been sent. For messages with no flags, it assumesTrue
.SignedAttachment
andBaseAttachment
more similar by adding properties to each that are shared.BaseAttachment
now have aname
property andSignedAttachment
now havelongFilename
andshortFilename
.__init__
methods from MSG classes that don't change it. This ensures notes are easily passed down.PtypTime
is handled, making it a single function inutils
.tzlocal
, for best results). Included dependencies arebeautifulsoup4
andtzlocal
.OleFileIO
. While I would prefer to do that, the__init__
method for it is rather expensive, and allowing embedded msg files to directly share each other's instances ofOleFileIO
would improve speed immensely.delayAttachments
wasFalse
.utils.openMsg
now delays attachments while loading the file to get the class type. This means all time for attachments is cut in half as they are only ever loaded once. It also means that files that won't open due to attachments will error a little later, but this shouldn't be a problem.Guid
back to constants. This has to do with the next entry.--no-folders
to the command line allowing you to save all attachments from a set of MSG files into a single folder.--skip-embedded
to the command line to skip saving embedded MSG files.skipEmbedded
toAttachment.save
(and all other related save methods that call it) to skip saving an embedded MSG file.__main__
so that it opens the zip file there instead of relying on everything it calls to do it again and again.--verbose
to allow it to be stacked for more verboseness. Specifying it once turns on warnings, twice for info, and three times for debug. Not specifying it only turns on error logging.