Bug 1022750

Summary: evolution loses complete imapx cache every time network connectity drops
Product: [Fedora] Fedora Reporter: Robert Buchholz <rbu>
Component: evolution-data-serverAssignee: Matthew Barnes <mbarnes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 19CC: bojan, kengert, mbarnes, mcrha, rbu, vg.aetera
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: evolution-data-server-3.8.5-6.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-18 02:55:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Robert Buchholz 2013-10-23 23:32:32 UTC
From https://bugzilla.gnome.org/show_bug.cgi?id=710642
> I have a large IMAP box running on a remote dovecot server, with several GB of
> messages in hundreds of folders. Evolution is set up with an imapx sync against
> this mailbox.
> 
> When going offline (e.g., changing wireless networks with the NetworkManager),
> Evolution sometimes gets into a state where it invalidates all cached folders,
> forcing a redownload of the entire mailbox.
> This has happened several times over the last months, but for a few days now,
> it happens several times per day. It makes the mailer completely unusable.
> When I change networks during the resync, the bug is pretty much reproducible.

The fix for https://bugzilla.gnome.org/show_bug.cgi?id=704513 seems to have increased the appearance of this bug.
Now evolution is refreshing its imapx cache every time I forget to quit it before my machine suspends.

This makes the program completely unusable, as it's just downloading gigabytes of mail all the time.

I'm on evolution-3.8.5-2.fc19 and evolution-data-server-3.8.5-5.fc19

Maybe related? rhbz #1022406

Comment 1 Milan Crha 2013-11-05 10:11:38 UTC
Thanks for a bug report. Weird why it gets triggered more often for you, with the fix which seemed to help to Andre (from the upstream bug). I see you are already there, thus I'd move there, though it would be good to test whether the actual update of evolution-data-server caused the issue for you. Could you downgrade it to its previous version, like to a 3.8.5-4 version, by invoking:
   $ yum downgrade evolution-data-server
please?

Comment 2 Milan Crha 2013-11-05 10:17:00 UTC
*** Bug 1023946 has been marked as a duplicate of this bug. ***

Comment 3 Milan Crha 2013-11-05 11:32:09 UTC
Never mind, I will revert the change in evolution-data-server-3.8.5-5 shortly.

Comment 4 Milan Crha 2013-11-05 11:32:45 UTC
*** Bug 1024131 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2013-11-05 12:06:09 UTC
evolution-data-server-3.8.5-6.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/evolution-data-server-3.8.5-6.fc19

Comment 6 Fedora Update System 2013-11-06 07:31:25 UTC
Package evolution-data-server-3.8.5-6.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing evolution-data-server-3.8.5-6.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-20710/evolution-data-server-3.8.5-6.fc19
then log in and leave karma (feedback).

Comment 7 Robert Buchholz 2013-11-13 23:53:58 UTC
Milan, sorry for not getting back earlier.
The cache drop was very much reproducible on -5, which is why I downgraded to -4 shortly after the bug report. There, I did not see the problem as regularly (in fact, just once). I haven't tried -6 as I understand it's simply a revert.

I'm anxious for 3.10 in fc20, which hopefully solved the root cause successfully.

Comment 8 Milan Crha 2013-11-14 07:10:47 UTC
(In reply to Robert Buchholz from comment #7)
> I haven't tried -6 as I understand it's simply a revert.

You are right, it's only a revert of the patch addition, thus other users will not update to a (more) broken version.

Comment 9 Fedora Update System 2013-11-18 02:55:51 UTC
evolution-data-server-3.8.5-6.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Vladislav Grigoryev 2013-11-19 03:55:26 UTC
(In reply to Robert Buchholz from comment #0)
> Now evolution is refreshing its imapx cache every time I forget to quit it
> before my machine suspends.

Going offline/online also breaks settings for "Drafts" and "Sent" folders configured to IMAP server.
Update to evolution-data-server-3.8.5-6.fc19.x86_64 resolves the issue.