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 617509 - File->Empty trash doesn't expunge Deleted items
File->Empty trash doesn't expunge Deleted items
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: Mail
0.30.x
Other Linux
: Normal normal
: ---
Assigned To: evolution-mapi-maint
evolution-mapi-maint
: 617511 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-05-03 10:12 UTC by Milan Crha
Modified: 2010-05-12 19:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ema patch (2.45 KB, patch)
2010-05-03 14:46 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2010-05-03 10:12:15 UTC
Moving this from a downstream bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=587741

Description of problem:
File->Empty Trash doesn't really empty the trash.  Using OWA, when browsing
folders I realized that my "Deleted Items" folder was full of messages that
should have deleted.

Version-Release number of selected component (if applicable):
evolution-2.30.1-2.fc13.x86_64
evolution-mapi-0.30.1-1.fc13.x86_64

How reproducible:
always

Steps to Reproduce:
1. Delete message in evolution
2. File->Empty Trash
3. View Deleted items folder in OWA

Actual results:
Deleted items folder still contains messages that should have been deleted

Expected results:
Delted items folder should be empty.

Additional info:

----------------------------------------------------------------------------

Browsing to the "Deleted Items" folder in Evolution also shows the same
messages that are visible in OWA (I just didn't realize the bug until I was in
OWA), but "Empty Trash" still has no effect, even if you are in the Deleted
Items folder on Evolution. 

----------------------------------------------------------------------------

Workaround:
right click on the "Deleted Items" folder (from the left folder navigation
pane) and select "Empty Trash".  

So while File->"Empty Trash" does not work, right clicking on the folder and
selecting "Empty Trash" does.  

Final note, when this account was configured for IMAP access (under F11, and
F12), File->"Empty Trash" did work.  So this would seem to be an issue that
only appears with the mapi connector.

----------------------------------------------------------------------------

I can reproduce it too. It seems to me that the issue is really only with evolution-mapi, and the reason seems to be that the summary for the "Deleted Items" folder isn't downloaded (you indicated that you didn't look in the folder earlier), thus evolution-mapi thinks there is no message stored in it, and skips the expunge operation. When you select it, it fetches folder summary, knows about messages, and the same expunge operation may work properly.
Comment 1 Milan Crha 2010-05-03 14:46:46 UTC
Created attachment 160193 [details] [review]
ema patch

for evolution-mapi;

After more investigation I realized it's because ema claims it doesn't have a virtual trash folder, but it doesn't provide real trash. Having it provide right trash folder makes this work as expected, even when the folder summary for Deleted items isn't fetched yet.
Comment 2 Milan Crha 2010-05-03 14:52:43 UTC
Created commit 4add02b in ema master (0.31.2+)
Created commit 8e14789 in ema gnome-2-30 (0.30.2+)
Comment 3 Milan Crha 2010-05-03 14:55:56 UTC
*** Bug 617511 has been marked as a duplicate of this bug. ***