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 646898 - imapx should invalidated cache when uidvalidity changes
imapx should invalidated cache when uidvalidity changes
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
2.32.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: David Woodhouse
Evolution QA team
evolution[imapx]
Depends on:
Blocks:
 
 
Reported: 2011-04-06 10:17 UTC by Guillaume Desmottes
Modified: 2011-05-17 09:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
eds patch (7.64 KB, patch)
2011-05-17 09:29 UTC, Milan Crha
committed Details | Review

Description Guillaume Desmottes 2011-04-06 10:17:38 UTC
My server is running courier-imap-ssl 4.8.0-1ubuntu1 (Ubuntu Maverick). I noticed that since I updated to Evolution 2.32.2 (Ubuntu Natty), lot of new mails appears with the right title in the treeview but an old unrelated mail was displayed instead when reading the mail.

Thanks to dwmw2's help on IRC I managed to fix this issue by removing Evolution's cache but he asked me to open a bug report:

<dwmw2> hm, this might actually be an imapx bug
<dwmw2> we don't handle uidvalidity changes properly
<dwmw2> we should throw away the entire cache and start again when uidvalidity changes
Comment 1 Milan Crha 2011-05-17 09:29:20 UTC
Created attachment 187949 [details] [review]
eds patch

for evolution-data-server;

This makes imapx manage uidvalidity in a bit better way, it clears local cache on its change and forces refetch of all messages (on demand). New API function to CamelDataCache was added, thus only for master.
Comment 2 Milan Crha 2011-05-17 09:31:31 UTC
Created commit 621d4e0 in eds master (3.1.2+)