Using the msgxtractr package on R, I am trying to extract the headers of outlook emails with the format ".msg". The codes used are:
path = "C:/Users/.../email_for_extracting.msg"
library(msgxtractr)
email = read_msg(path)
email_header = email$headers
However, I notice that I am only able to do so if the email is located in the "Inbox" folder of my Outlook in the first place, and thereafter exported as a msg file. If the email is saved from the "Sent" folder, then email_header will be NULL.
Is there a way to extract the headers of emails located in the "Sent" folder of my Outlook? Thank you!