Skip to content

Conversation

@kesselb
Copy link
Contributor

@kesselb kesselb commented Nov 28, 2023

For nextcloud/files_emailviewer#1

Summary

Add mimetype mapping for eml and msg files

TODO

  • CI
  • Backport 28

Checklist

Signed-off-by: Daniel Kesselberg <[email protected]>
@kesselb kesselb requested review from a team, ArtificialOwl, icewind1991, sorbaugh and st3iny and removed request for a team November 28, 2023 21:38
@kesselb kesselb self-assigned this Nov 28, 2023
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works, too

Uploaded MSG files are now detected with <d:getcontenttype>application/x-ole-storage</d:getcontenttype>

private function introduceEmlAndMsgFormatType() {
$updatedMimetypes = [
'eml' => 'message/rfc822',
'msg' => 'application/x-ole-storage',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yet I'm wondering if it should be application/vnd.ms-outlook

@ChristophWurst
Copy link
Member

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants