-
-
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
Attachments error if type property is missing on embedded msg files #318
Comments
This is not related to a lack of support for embedded emails, this is due to your file missing a property that is expected to always exist on every attachment. Usually it's only checked under very specific circumstances. I need to check if the property is considered mandatory or has a listing for what to do if it's missing. The line where it is erroring is the code trying to figure out the actual type of structure that the attachment uses, and it failing to confirm it. |
After checking the documentation, the wording leads me to believe that the property is considered to be mandatory. It also does not specify any kind of handling for when it is missing, so I'm at a bit of a loss in where to go except to add a clarification to the error. Trying to do otherwise has the problem of being rather complicated to achieve. Out of curiosity, were those msg files generated by outlook or some other program? If they were generated by outlook, does outlook appear to handle them properly with the ability to open the embedded files? |
Not certain how the |
Based on that, I think I can add some implementation that might try to figure it out based on that information. I'll let you know. |
Okay, I just pushed some code to the next-release branch. Can you install from that and let me know if that fixes the issue for those msg files? |
This should now be fixed in version 0.39.0 |
Currently, if a
.msg
file which has an.eml
or.msg
file as an attachment is opened usingextract_msg.openMsg()
, it will error out when it tries to get the.eml
or.msg
file attachment with the following:Would it be possible to update the attachment gathering so that the
.eml
or.msg
file attachments are successfully retrieved?The text was updated successfully, but these errors were encountered: