Currently, when using the "modern experience", email files (.msg and .eml) open in the browser as a preview of sorts. Although this has some drawbacks, I have a use case where this is the preference. However, when using a list view webpart to display the content (basically the same as the classic experience) those files download instead of opening in the browser.
The one thought I had was to create a calculated column to build a url field using the url found in the modern experience but it appears to need the file name and that can't be done in a calculated column. I can imagine that this same thought could be done via a workflow but I'd rather not go that route due to the potential issues with workflows that don't run or having too many run or issues with list view threshold.
Does anyone have any suggestions or links as to how to open such files in the browser when in the classic experience? I'm not sure what mechanism (javascript? web apps?) is used to do so.
Thanks!