After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776251 - Store headers from RFC message rather than trusting the IMAP server
Store headers from RFC message rather than trusting the IMAP server
Status: RESOLVED OBSOLETE
Product: geary
Classification: Other
Component: engine
master
Other Linux
: Normal normal
: 0.14.0
Assigned To: Geary Maintainers
Geary Maintainers
Depends on:
Blocks: 769254 776129
 
 
Reported: 2016-12-19 04:12 UTC by Michael Gratton
Modified: 2021-07-05 13:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Gratton 2016-12-19 04:12:07 UTC
A few issues have now arisen from the fact that Geary stores header values in the db that it obtains from IMAP responses, rather than from the RFC822 message body itself: Invalid message IDs being stored (Bug 769254) and servers not handling multiple CC headers (Bug 769254).

Instead (or in addition to) of storing these values from the IMAP response, once we have the full set of message headers, we should parse and store them. This may need some signals hooked up so the client knows message data may have changed.

A comment at the top of Geary.Imap.Folder::fields_to_fetch_data_types suggests that using ENVELOPE is desirable for performance reasons, so maybe the existing approach of fetching a preview first then queuing a download of the full message body is still worth while, but in that case we should still update the headers and hence re-index, re-thread into conversations, etc when the full message body has been acquired.

An alternative approach would be to just fetch the full headers along with the preview and use those straight away.

See also comments about not having to fetch EVELOPEs in Geary.ImapEngine.EmailPrefetcher::do_prefetch_batch_async.
Comment 1 Michael Gratton 2018-06-26 04:47:20 UTC
Bump tickets to 0.14 that aren't going to make 0.13.
Comment 2 GNOME Infrastructure Team 2021-07-05 13:26:45 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/geary/-/issues/

Thank you for your understanding and your help.