问题
I'm trying to get all email headers from a selected Outlook email while inside an Outlook Addin.
I've found the Preview API that should allow me to get the headers.
This is what I have tried as of now
Office.initialize = (reason) => {
headerNames = ["Received-SPF"]
Office.context.mailbox.item.internetHeaders.getAsync(headerNames, print);
}
print(asyncResult) {
console.log(asyncResult.value);
}
The problem is when I start to put more headers, the API doesn't return them.
The only ones I get are Received-SPF, DKIM-Signature and Authentication-Results. All other headers (Received, To, X-Microsoft-Antispam-Message-Info, etc) are ignored.
来源:https://stackoverflow.com/questions/55518119/cant-get-most-email-headers-in-outlook-addin-api