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 545153 - Ask whether to quit with pending operations
Ask whether to quit with pending operations
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Shell
2.22.x (obsolete)
Other Linux
: Normal minor
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
evolution[kill-bonobo] aklapper[flaky]
: 651716 741914 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-07-28 13:38 UTC by Ruchir Brahmbhatt
Modified: 2015-01-08 08:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Ruchir Brahmbhatt 2008-07-28 13:38:18 UTC
Evolution version: 2.22.1.1
OS: openSUSE 11.0
Gnome: 2.22
When we close evolution and if internet is down at that time then it takes so long(I generally have to kill evolution) to close it. It stays in status "Storing account imap://.....".
If LAN is down then it closes immediate but if LAN is on but internet is down then only this problem occurs.

Prerequisites: 
1. Configured IMAP account
2. Download messages for offline mode enabled

Steps to reproduce:
1. Open evolution
2. Do some operations with mailbox.
3. Simulate internet outage somehow(not LAN)
4. Close evolution

Actual Results:
1. Evolution window is greyed out and status shows "Storing account imap://....."

Expected Result:
1. After several seconds it should detect internet outage and should close instead of keep trying to store the account.
Comment 1 Matthew Barnes 2008-07-28 13:52:16 UTC
This is due to a socket timeout when trying connecting to a remote host.  We use NetworkManager to detect network connectivity of the local host machine, but it's not easy to detect "Internet outages."

One of the things we could do in this situation is periodically ask the user whether he wants to cancel the pending operations or keep waiting, similar to when the window manager asks you whether to terminate or keep waiting on a non-responsive window.
Comment 2 Ruchir Brahmbhatt 2008-07-28 13:54:45 UTC
I think this is good idea. So users have choice whether to wait or cancel the pending operations and close evolution.
Comment 3 Matthew Barnes 2008-07-28 14:58:44 UTC
Proposed wording for such a dialog:

    Evolution is taking a long time to shut down, possibly due to network
    connectivity issues.  Would you like to cancel all pending operations
    and close immediately, or keep waiting?

                                      [Close Immediately]  [Keep Waiting]
Comment 4 Ruchir Brahmbhatt 2008-07-28 15:05:08 UTC
Thats cool.
Comment 5 Ruchir Brahmbhatt 2008-09-05 10:57:06 UTC
Is it going to make it in the next version?
Comment 6 Matthew Barnes 2008-09-05 11:11:26 UTC
No, too late for 2.24 at this point.
Comment 7 Ruchir Brahmbhatt 2008-09-05 11:18:32 UTC
So can we expect it in 2.26?
Comment 8 André Klapper 2013-12-15 12:02:51 UTC
*** Bug 651716 has been marked as a duplicate of this bug. ***
Comment 9 Milan Crha 2014-10-29 20:57:22 UTC
I made the change with Matthew's wording. I do not ask repeatedly, only once, but I also ask when user re-clicks the "x" button to close he window. In that case the message is not fully accurate, the part about Evolution being slow, but that's just a minor detail, isn't it?  

Created commit 4646811 in evo master (3.13.8+) [1]

[1] https://git.gnome.org/browse/evolution/commit/?id=4646811
Comment 10 Milan Crha 2015-01-07 15:15:36 UTC
*** Bug 741914 has been marked as a duplicate of this bug. ***
Comment 11 Jean-François Fortin Tam 2015-01-07 22:56:38 UTC
If I understand comment 9 correctly, this was not fixed/implemented before,
only now with 3.13.8+ ?
Comment 12 Milan Crha 2015-01-08 08:54:00 UTC
(In reply to comment #11)
> If I understand comment 9 correctly, this was not fixed/implemented before,
> only now with 3.13.8+ ?

Correct. New strings, new UI => 3.14 material.