GNOME Bugzilla – Bug 777118
Fetch preview assumes first MIME part is useful content
Last modified: 2019-06-02 10:18:47 UTC
Part of the cause of Bug 714317 was that when generating a preview when fetching a message from the server i.e. when Geary.Email.Field.PREVIEW is set, the code currently assumes the first part will contain useful content, and request's the fist Geary.Email.MAX_PREVIEW_BYTES worth of that. This is not always the case however as there may multipart containers, or GPG parts, etc. To fix this, we need to know IMAP BODYSTRUCTURE in advance, so that determination can be made - i.e. Bug 776309.
*** Bug 779370 has been marked as a duplicate of this bug. ***
Closing this in favour of https://gitlab.gnome.org/GNOME/geary/issues/453