Parse .msg outlook file with flutter/dart

323 views Asked by At

I need help running this python code in a windows flutter app

import win32com.client
outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
msg = outlook.OpenSharedItem(r"C:\test_msg.msg")

using the win32 package, as I can't understand how to use it... I'm quite sure it's doable since this is available in the package and seems to be what is needed...

1

There are 1 answers

1
Eugene Astafiev On

The most easiest way is to automate Outlook for that like the Python code does. Be aware, the code mentioned make sense only for Windows machines. The COM technology doesn't exists on other platforms.

Also you can find the MSG file format described in depth in MSDN. So, you may search for existing parsers over the internet or create your own.