-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown mime-Type for .msg Files #3543
Comments
We are relying on Android to detect the correct mimetype:
But this fails for "msg" and thus it is opened by any app that can handle octet-stream. |
I also reported the problem to Google issuetracker. I hope this gets fixed fast. |
I've commented on the bug on the Google issue tracker too, but basically I don't think it's clear why you need any change of Android's behavior at all. My understanding is that it should be sufficient to use the file extension to recognize those files. Your app (Nextcloud for Android) should make sure that the Uri for your VIEW Intent ends with the correct file extension so that viewers can recognize it. Also, you haven't specified which MIME type you consider to be correct for .msg files and why you consider that to be correct. An RFC would be great, but I couldn't find an RFC that specified a correct MIME type for .msg files. Upstream mime-support also doesn't have a mapping for .msg files: |
We are doing this, but as said Android does not handle .msg. So we (and maybe hundreds of other apps) need to handle this on their own. |
Can you give this a try? |
Also tested it with Android 9 and working jsut fine offering the mentioned app for .msg files. So closing the issue. Please feel free to comment and re-open in case the issue persists. |
Actual behaviour
Expected behaviour
Steps to reproduce
Download Android NC App & and any .msg file compatible viewer app. as example: https://play.google.com/store/apps/details?id=com.sharpened.androidfileviewer
try to open a .msg file from the nextcloud app.
try to open a .msg file from the viewer app.
Environment data
Android version: 8.0 / 8.1 / 9
Device model: SM-A530x / SM-G39F / BKL-L09
Stock or customized system: Manufacturer unchanged (Samsung / Huawei)
Nextcloud app version: 3.4.2
Nextcloud server version: 14.0.6
Answer from a Fileviewer Dev Support:
The reason for this issue is technical and has to do with the source app you’re trying to open the .msg files from. A short explanation is below. We are working on a solution for this for a future version of File Viewer for Android.
If the app you’re trying to open the file from asks to open an “application/vnd.ms-outlook” file, then File Viewer will be shown as an open option because this is the correct MIME type for the file. However, it’s more likely that your app is requesting that a generic “application/octet-stream” byte stream be opened because it does not correctly identify the MIME type. In this case, File Viewer does not display as an open option because “application/octet-stream” is not specific.
The text was updated successfully, but these errors were encountered: