Originally Posted by PastagaCigales
If it can help, several .eml files of mere text messages cannot be opened by the new html viewer, and the relevant part of the log says:
D/ContentViewerActivity> Extension: eml, MimeType: message/rfc822
E/ContentViewerActivity> Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
I did more thorough tests using the latest beta version, and found that all .eml files created with K9-mail or Samsung mail could not be opened, resulting in the same error as mentionned above. By comparison with .eml files that could be read, I ended finding the reason: Mixplorer HTML viewer fails on MIME encoded files where the "boundary" string definition does not start on a new line.
To be more precise, case 1 below will work, but not case 2:
Content-Type: multipart/alternative; boundary="----XXXXXXXXX"
In order to avoid to have to manually edit each .eml file to add a line break before the "boundary" definition and remove the semicolon of the previous line, would it be possible to change the code so as to accept the syntax where the "boundary" statement is grouped with another declaration ?
Thanks in advance.