-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
No email content displayed #1333
Comments
Same issue for an e-mail I got today. I got a stack trace when I hooked up ADB. I've created a gist with the email and stack trace. https://gist.github.com/philipwhiuk/43f98fff2260c67f5f68decd6906143c Not possible to know whether it's the same cause. We could choose handle errors in a way that allows us to get the reason why the message wasn't parsed (e.g. by adding a message to K9mail-errors folder) or we could just fix it for the cases we get stack traces for. |
at a first glance, that email seems to violate the unique boundary property |
it happens with nigh on every single email I get now though with a certain amount of annoyance and irony the email I got telling me I had a reply here seems to open just fine. |
It would be very helpful if you could provide a debug log, because without that we are flying blind here. The relevant bits will look something like the stack trace @philipwhiuk has in the gist he linked above On a related note, if you use K-9 productively, it might not be a wise decision to join the tester group. It's cool if you help us figure out bugs so they never make it into an actual release, but if it gets to a point where it's detrimental to your experience you might want to reconsider (see here) |
to be completely honest, I hadnt even realised I had a test version of k9 installed and not sure how/why I installed it either (I've used k9 for ages now and certain I hadnt installed anything but the regular playstore version) - it has updated itself recently and was looking to roll it back to a useable state but thought I'd check it out first and had never experienced problems up until recently. |
just capture a log right after you opened a mail which shows up blank. hopefully your log contains a stacktrace of the cause then. another thought: does this happen with new mail as well as old? or do newly loaded messages show up correctly perhaps? |
does it with new and old and I've just gone to email myself the log screenshots from catlog (was having issues with logcat and I have root so tried catlog) and it threw back an error there as well, lol, this was about the best I could manage to get from catlog (for some reason I couldnt get anything out in text format but I've put screenshots together - hope thats ok) the 'sketch' part is only the name for that particular inbox so didnt bother hiding that and the only thing I've covered in it was the accountuuid, I wasnt sure if that was specific to my personal account or not so figured I would cover it to be safe. I oppened two emails before that log - one that didnt show content (from epic about beta access) and one that did (the notification about a reply to this post) hope this is a bit more helpful |
So that issue is from #1164 I think it should be fixed in the next beta? |
Doesn't only happen with "large" emails though bit for now I have had to begrudgingly revert back to the "normal" play store version of the app as I rely on access to my emails too much |
Regarding the non-unique boundary issue, the problem arises in This error is triggered by non-unique boundaries: A message such as Making sure that all MimeBodyPart objects always has a MimeMultipart body seems difficult, I would propose adding a check if the mimeType is I gave that fix a shot, works for me. PR coming up. |
on current master, email and stacktrace:
For an email like this (note the duplicate content-type header), the mime parser gives us a startMultipart() callback, but the content-type header we parse does not have a boundary. The standards violation we need to deal with here is lack of a boundary parameter. We can't do much about a malformed mail like this I guess, but at least we shouldn't crash. More generally at the moment, MimeMultipart crashes if it gets handed a null boundary parameter, so the handling must happen at every calling site. This is currently handled in none of the three calling sites (mimeparser, decryptstreamparser, loadpart), so we should probably find a common strategy for this. We can either:
|
We should make sure that our code comes to the same conclusion as the MIME4J parser when it comes to the |
That's not a call we can make when we get the structure of an email from the imap server, so there is at least one way we can get parts that isn't mime4j-dependent |
I looked at this in some more detail, please disregardmy previous statement. So, the main handling for this is in What we do in The simple solution would be to pass all content-type headers to |
Should be fixed in master. |
No content in emails at all
they poll as expected and I will get read/unread counts along with the usual titles and headers with the two line preview (as set in the options)
but when openning the email to read - there is nothing at all present.
Checked this with basic text emails, with/without images, with/without attachments etc but nothing shows.
This has only just started to happen recently and the play store reports that I am using a "test version" so am unable to write a review.
Up until this started happening I've always used this app and have got others to use it instead of their normal applications.
The emails are fine using my desktop pc and through other apps but k9 just isnt having any of it, lol
Also tried to bump up the max fetch size to see if that was the issue and also cleared cache out as suggested by a few others, all to no avail.
running latest updated version on android version 5.1.1 samsung s5 trying to access my googlemail account
The text was updated successfully, but these errors were encountered: