Skip to content Skip to sidebar Skip to footer

Python: Open Outlook Email (.msg) File In Read Write Mode

I want to open Outlook email (msg) file in read and write mode to parse it and alter date values. To fetch (read mode) date from msg file and then replace (write mode) dummy date t

Solution 1:

SentOn property is read-only in the Outlook Object Model. You'd need Extended MAPI for that (C++ or Delphi, use OpenIMsgOnIStg, set the PR_CLIENT_SUBMIT_TIME property) or Redemption (any language):

  set Session = CreateObject("Redemption.RDOSession")
  set Msg = Session.GetMessageFromMsgFile("C:\Users\abc.msg")
  Msg.SentOn = #5/17/2016#
  Msg.Save

Post a Comment for "Python: Open Outlook Email (.msg) File In Read Write Mode"