MIME parts returned by getAsFileAsync() don't include Content-Disposition on Outlook Win32 #4585
Labels
Area: Outlook
Issue related to Outlook add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
Provide required information needed to triage your issue
Your Environment
Expected behavior
A bodypart should be marked
Content-Disposition: inline;
if it is intended to be displayed automatically upon display of the message. Inline bodyparts should be presented in the order in which they occur, subject to the normal semantics of multipart messages.Current behavior
In the Classic Outlook for Windows (Win32) JS Runtime for an event-based or spam-reporting add-in, calling getAsFileAsync() returns a multipart mime document that doesn't include content-dispositions for its attachments. This limits handling of inline attachments in downstream processing.
In Outlook on the Web and New Outlook for Windows (the web runtime), content-disposition is set as expected.
Steps to reproduce
outlook-spam-reporting
sample add-inLink to live example(s)
To confirm my findings, I used the office-js outlook-spam-reporting sample add-in: https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/outlook-spam-reporting
Context
The
inline
content-disposition is used to analyze spam and phishing emails and present partial views of the resulting bodyparts with analysis. Grouping inline attachments and attachments separate from the main body results in inaccurate results that require additional processing to correct.Useful logs
Inline attachment, Outlook on the web and New Outlook on Windows
Inline attachment, Classic Outlook on Windows
The text was updated successfully, but these errors were encountered: