Open farblos opened 1 year ago
If my educated guess above is true, K-9 mail would not be the culprit here, of course ...
Note that this different from #6800: There the error is thrown by this line@version 6.400:
861: val subType = bs.getString(1)
where in my case it is thrown here@version 6.602:
873: val encoding = bs.getString(5)
Checklist
App version
6.602
Where did you get the app from?
Google Play
Android version
13
Device model
Samsung Galaxy Tab S7 (SM-T870)
Steps to reproduce
Receive a mail with broken content type in its MIME structure from provider vodafonemail.de.
Expected behavior
Mail is displayed in summary overview.
Actual behavior
Mail is not displayed in summary overview, log contains below error.
Thunderbird displays it properly.
Logs
Below is my educated guess of what happens here - if you need more specific information, please let me know.
The stack trace is as follows:
The mail causing this has the following content type declaration on one of its parts (note the double quotes around
application/pdf
!):When fetching manually the body structure, this becomes (note
""APPLICATION" "PDF""
!):K-9 parses out of that:
Where the element corresponding to the
application/pdf
partis messed up most likely due to the double double quotes. In particular, where K-9 expects a string specifying the encoding, there is list
[name, 19976893.pdf]
, causing the exception.