To parse msg file in MATLAB, you can make use of the Outlook COM Server interface. Here is an example script that demonstrates how to extract the contents of a msg file:
main.m763 chars27 lines
In this script, we first create an instance of the Outlook COM Server interface by calling the actxserver
function. We then open the msg file by calling CreateItemFromTemplate
and extract its subject and body properties.
Finally, we extract any attachments that are present in the message. After that, we close the message, release the COM server, and re-enable any warnings that were previously disabled.
gistlibby LogSnag