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 620609 - Empty trash at exit doesn't work
Empty trash at exit doesn't work
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.30.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[disk-summary]
: 625501 628515 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-06-04 23:54 UTC by Russ Mannex
Modified: 2010-11-30 08:56 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
proposed eds patch (1.52 KB, patch)
2010-09-17 11:56 UTC, Milan Crha
committed Details | Review
proposed evo patch (878 bytes, patch)
2010-09-17 11:59 UTC, Milan Crha
committed Details | Review

Description Russ Mannex 2010-06-04 23:54:50 UTC
Evolution 2.28.3 under 10.04 not purging trash at exit, even though configured to do so (i.e. "Empty trash folders on exit: every time").


Distribution: Ubuntu 10.04 (lucid)
Gnome Release: 2.30.0 2010-03-31 (Ubuntu)
BugBuddy Version: 2.28.0
Comment 1 Akhil Laddha 2010-07-28 21:29:38 UTC
*** Bug 625501 has been marked as a duplicate of this bug. ***
Comment 2 Akhil Laddha 2010-07-28 21:30:27 UTC
last dupe in 2.30.x
Comment 3 Milan Crha 2010-09-17 11:56:01 UTC
Created attachment 170476 [details] [review]
proposed eds patch

for evolution-data-server;

The first issue might be that it was using only opened folders during the session, thus it might not expunge all folders, as it ought to be, in the account.

Of course, this slows down the process for remote accounts, but the trash should contain deleted items from all folders, shouldn't it?
Comment 4 Milan Crha 2010-09-17 11:59:41 UTC
Created attachment 170477 [details] [review]
proposed evo patch

for evolution;

The second issue was with evolution itself. It asked store to expunge its deleted items, but it cancelled all these and other pending requests immediately after it asked for an expunge, thus it wasn't expunged at all.
Comment 5 Milan Crha 2010-09-17 12:01:43 UTC
Akhil, please give it some testing, and let's see what it'll do. Thanks in advance.
Comment 6 David Woodhouse 2010-09-17 16:02:53 UTC
The patch in comment #4 helps with a similar bug in imapx (bug 629916) but even after I fix the imapx bug with error handling there are still issues -- imapx gets disconnected from the IMAP server because the cancelled status prevents it from sending the DONE command. And then it wants to make a *new* connection to the IMAP server to empty the trash and sync flags changes, etc.... but those new connections don't work *either* because the cancelled status is still present.

I don't really understand what's going on here.
Comment 7 David Woodhouse 2010-09-18 08:16:37 UTC
It works much better if we just remove the call to mail_cancel_all() completely, rather than moving it around. What's it for, anyway? If an operation like a big folder->folder copy or writing a large outbound mail to Fcc is still in progress when we exit, shouldn't we let it complete rather than aborting it?

Perhaps we should abort only *background* tasks like periodic mail checks, and not user-driven actions?
Comment 8 David Woodhouse 2010-09-20 14:24:52 UTC
After fixing a pile of imapx bugs, I no longer object to the call to mail_cancel_all(), as long as it's in the right place. Although I'm still not convinced it's actually necessary or correct.
Comment 9 Milan Crha 2010-11-29 11:32:28 UTC
*** Bug 628515 has been marked as a duplicate of this bug. ***
Comment 10 Milan Crha 2010-11-29 11:34:29 UTC
I'm committing this after today's release.
Comment 11 Milan Crha 2010-11-29 16:07:06 UTC
Created commit e877646 in eds master (2.91.4+)
Created commit 30427e1 in evo master (2.91.4+)
Comment 12 Bojan Smojver 2010-11-30 01:57:40 UTC
Will this be backported to 2.32.x?
Comment 13 Milan Crha 2010-11-30 07:54:45 UTC
I thought in some testing before committing to 2.32, though it's possible I'll forget of this bug report meanwhile. Also note there is no 2.32.2 official release date, because the release team decided to rather focus on 2.91. Nonetheless, the Evolution team is planning another stable release.
Comment 14 Bojan Smojver 2010-11-30 08:56:56 UTC
OK, thanks. I still think I may be hitting something else here, because I don't have "Empty trash on exit" ticked. I may just load debuginfos and provide a backtrace, so that you know what's going on.