GNOME Bugzilla – Bug 723376
Evo. 3.10.2, 3.10.3 Can't Expunge files in Real Folder on IMAP Server
Last modified: 2014-02-11 18:57:44 UTC
We have been using Evolution since many years on the same IMAP Server. Since version 3.10.2 it has become impossible to expunge files from the REAL Trash folder stored on the IMAP Server. Evo 3.6.4 and previous versions worked OK. The IMAP Server maildir structure is: /INBOX /INBOX.Drafts /INBOX.Send /INBOX.Junk /INBOX.Trash each with /cur, /new and /tmp sub directories. Deleted files are moved to the /.INBOX.Trash folder and with Evo 6.6.4 and earlier are expunged by using the Mail Account->right click dropdown menu "Empty Trash" and as per global setup if "Empty Trash Folders on Exit" is ticked.
Please provide debug output for IMAP when trying to run the Expunge command. See https://wiki.gnome.org/Apps/Evolution/Debugging
We don't yet have code to automatically handle so-called "real" Trash folders, but it's just a normal IMAP mailbox and works the same as any other: delete the messages in Evolution to apply a /Deleted attribute to them on the server, then expunge the mailbox to permanently remove messages with a /Deleted attribute. The "real" Trash folders are a fairly recent addition. The "Empty Trash" and "Empty Trash Folders on Exit" options still refer to _virtual_ Trash folders, which utilize the /Deleted attribute. They need to be updated to handle both types of Trash folders.
Created attachment 267830 [details] Evo 3.10.3 Trash Folder Test. Debug Output
The debug output says in the last few lines: QUOTE [imapx:A] camel_imapx_read: buffer is ') A00012 OK Fetch completed. A00010 OK Expunge completed. ' [imapx:A] camel_imapx_write: 'A00013 EXPUNGE ' [imapx:A] camel_imapx_read: buffer is 'A00013 OK Expunge completed. ' UNQUOTE This is not correct as the /.IMAP.Trash folder has not been emptied.
Created attachment 267839 [details] Screenshot of Evo 3.10.3
Created attachment 267841 [details] Screenshot of Evo 3.10.3
Created attachment 267842 [details] Sceenshots of Evo 3.6.4
For the moment, you empty the folder named "Trash" just like any other IMAP folder: delete the messages in Evolution so they get a /Deleted attribute on the server, then expunge the folder to purge all messages with a /Deleted attribute. I'll work on automating this for so-called "real" Trash folders, but that's all it's going to be doing behind the scenes.
Maybe you can use the code from Evo 3.6.4 and earlier version. There expunging the "Real" Trash folder works fine. Just Rightclick on the Trash folder to open the pulldown menu and click on Empty Trash. Also look at deleting the contents of the "Real" Junk folder. I have more than 50 users complaining since upgrading from OpenSuse 12.2 with Evo 3.4.4 because of end of live from OpenSuse 12.2 to OpenSuse 12.3 and 13.1. with Evo 3.6.4 and 3.8.5. Will have to train the users to delete the Trash file by file or install Thunderbird on 15 boxes and have other problems.
Okay, so you must have been using the older IMAP backend in 3.6, which was dropped in 3.8.
Created attachment 267918 [details] OpenSuse 13.1 (Evo 3.10.2) installed files
That's correct. See attached screen shots of Evo related file list: OpenSuse 12.3 (Evo 3.6.4).png OpenSuse 13.1 (Evo 3.10.2).png Gentoo list (Evo 3.10.3).txt
Created attachment 267919 [details] OpenSuse 12.3 (Evo 3.6.4) installed files
Created attachment 267920 [details] Gentoo (Evo 3.10.3) Evo related installed files
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 719806 ***