1

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...

BananaMaster
  • 377
  • 6
  • 15

1 Answers1

0

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.

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45