-
-
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.29.0 #224
Merged
Merged
Version 0.29.0 #224
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
Transfer of progress code to main repository.
…er to add more properties.
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.29.0
datetime.datetime.max
is returned. While perhaps not the best solution, it will have to do for now.utils.parseType
was returning a string for the date when it makes more sense to return an actual datetime instance.Message.defaultFolderName
. This property returns the default name to be used for a Message if none of the options change the name.useFileName
(nowuseMsgFilename
) argument in the save function.IPM
will now be returned asMSGFile
byopenMsg
, as this specifies that no format has been specified.UnsupportedAttachment
instead ofBrokenAttachment
.openMsg
will now tell you if a class type is simply unsupported rather than unrecognized. If it is found in the list, the function will raiseUnsupportedMSGTypeError
.MSGFile.listDir
. I found that if you have larger files this single function might be taking up over half of the processing time because of how many times it is used in the module.Contact
class to have more properties.MSGFile._ensureSetTyped
which acts like the other ensure set functions but doesn't require you to know the type. Prefer to use other ensure set function when you know exactly what type it will be.Message.saveRaw
toMSGFile.saveRaw
.MSGFile.saveRaw
to take a path and save the contents to a zip file.None
.raw
keyword ofMessage.save
now actually works.Attachment.randomFilename
which allows you to get the randomly generated name for attachments that don't have a usable one otherwise.Attachment.regenerateRandomName
for creating a new random name if necessary.Attachment.getFilename
. This function is used to get the name an attachment will be saved with given the specified arguments. Arguments are identical toAttachment.save
.Attachment.save
andMessage.save
. Simply pass a path for thezip
keyword argument and it will create a newZipFile
instance and save all of it's data inside there. Alternatively, you can pass an instance of a class that is either aZipFile
orZipFile
-like and it will simply use that. When this argument is defined, thecustomPath
argument refers to the path inside the zip file.html
andrtf
keywords toMessage.save
. These will attempt to save the body in the html or rtf format, respectively. If the program cannot save in those formats, it will raise an exception unless theallowFallback
keyword argument isTrue
.utils.hasLen
to usehasattr
instead of the try-except method it was using.recipientSeparator
toMessageBase
allowing you to specify a custom recipient separator (default is ";" to match Microsoft Outlook).openMsg
function inAttachment
to not be strict. This allows you to actually open the MSG file even if we don't recognize the type of embedded MSG that is being used.compressed-rtf
module so we can take advantage of that.MessageBase._genRecipient
to improve it (because what on earth was that code it was using before?). Variables in the function are now more descriptive. Added comments in several places.dev.setup_dev_logger
todev.setupDevLogger
.MSGFile.fix_path
toMSGFile.fixPath
.MessageBase.save_attachments
toMessageBase.saveAttachments
.*.Exists
toexists
.*.ExistsTypedProperty
to*.existsTypedProperty
.prop.create_prop
toprop.createProp
.Properties.attachment_count
toProperties.attachmentCount
.Properties.next_attachment_id
toProperties.nextAttachmentId
.Properties.next_recipient_id
toProperties.nextRecipientId
.Properties.recipient_count
toProperties.recipientCount
.utils.get_command_args
toutils.getCommandArgs
.utils.get_full_class_name
toutils.getFullClassName
.utils.get_input
toutils.getInput
.utils.has_len
toutils.hasLen
.utils.setup_logging
toutils.setupLogging
.constants.int_to_data_type
toconstants.intToDataType
.constants.int_to_intelligence
toconstants.intToIntelligence
.constants.int_to_recipient_type
toconstants.intToRecipientType
.