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 723376 - Evo. 3.10.2, 3.10.3 Can't Expunge files in Real Folder on IMAP Server
Evo. 3.10.2, 3.10.3 Can't Expunge files in Real Folder on IMAP Server
Status: RESOLVED DUPLICATE of bug 719806
Product: evolution
Classification: Applications
Component: Mailer
3.10.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2014-01-31 15:43 UTC by Hans
Modified: 2014-02-11 18:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Evo 3.10.3 Trash Folder Test. Debug Output (6.41 KB, text/plain)
2014-02-02 07:35 UTC, Hans
Details
Screenshot of Evo 3.10.3 (1010.00 KB, application/x-gzip)
2014-02-02 11:36 UTC, Hans
Details
Screenshot of Evo 3.10.3 (1010.00 KB, application/x-compressed-tar)
2014-02-02 11:43 UTC, Hans
Details
Sceenshots of Evo 3.6.4 (880.00 KB, application/x-compressed-tar)
2014-02-02 11:48 UTC, Hans
Details
OpenSuse 13.1 (Evo 3.10.2) installed files (202.93 KB, image/png)
2014-02-03 06:11 UTC, Hans
Details
OpenSuse 12.3 (Evo 3.6.4) installed files (235.15 KB, image/png)
2014-02-03 06:16 UTC, Hans
Details
Gentoo (Evo 3.10.3) Evo related installed files (7.10 KB, text/plain)
2014-02-03 06:20 UTC, Hans
Details

Description Hans 2014-01-31 15:43:22 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.
Comment 1 André Klapper 2014-01-31 16:19:51 UTC
Please provide debug output for IMAP when trying to run the Expunge command. See https://wiki.gnome.org/Apps/Evolution/Debugging
Comment 2 Matthew Barnes 2014-01-31 18:11:18 UTC
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.
Comment 3 Hans 2014-02-02 07:35:42 UTC
Created attachment 267830 [details]
Evo 3.10.3 Trash Folder Test. Debug Output
Comment 4 Hans 2014-02-02 07:40:02 UTC
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.
Comment 5 Hans 2014-02-02 11:36:07 UTC
Created attachment 267839 [details]
Screenshot of Evo 3.10.3
Comment 6 Hans 2014-02-02 11:43:14 UTC
Created attachment 267841 [details]
Screenshot of Evo 3.10.3
Comment 7 Hans 2014-02-02 11:48:24 UTC
Created attachment 267842 [details]
Sceenshots of Evo 3.6.4
Comment 8 Matthew Barnes 2014-02-02 15:09:18 UTC
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.
Comment 9 Hans 2014-02-02 16:15:06 UTC
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.
Comment 10 Matthew Barnes 2014-02-02 16:33:59 UTC
Okay, so you must have been using the older IMAP backend in 3.6, which was dropped in 3.8.
Comment 11 Hans 2014-02-03 06:11:29 UTC
Created attachment 267918 [details]
OpenSuse 13.1 (Evo 3.10.2) installed files
Comment 12 Hans 2014-02-03 06:13:26 UTC
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
Comment 13 Hans 2014-02-03 06:16:29 UTC
Created attachment 267919 [details]
OpenSuse 12.3 (Evo 3.6.4) installed files
Comment 14 Hans 2014-02-03 06:20:04 UTC
Created attachment 267920 [details]
Gentoo (Evo 3.10.3) Evo related installed files
Comment 15 Milan Crha 2014-02-11 18:57:44 UTC
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 ***