Closed ligi closed 8 years ago
When opening an attachment the MIME type from the email is used. If that type is application/octet-stream
we try to find a better one using MimeTypeMap.getMimeTypeFromExtension(). If that also fails we fall back to MimeUtility.MIME_TYPE_BY_EXTENSION_MAP.
We can add support for .pkpass
in MIME_TYPE_BY_EXTENSION_MAP
. But this is fixing the problem at the wrong end. Try to send emails containing the correct MIME type. Also, try to get .pkpass
support into the system's MimeTypeMap
.
Unfortunately I am not controlling the sending end - so https://github.com/k9mail/k-9/pull/1358 is greatly appreciated
Expected behaviour
When opening a mail with attached pkpass file the mime-type with the intent should be application/vnd-com.apple.pkpass as in gmail
Actual behaviour
The mime-type is application/octet-stream for the same mail that opens with application/vnd-com.apple.pkpass in gmail
Steps to reproduce
Environment
K-9 Mail version: 5.010
Android version: 5.1.1
Account type (IMAP, POP3, WebDAV/Exchange):IMAP