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 719806 - [IMAP+] Empty trash doesn't work with a real trash folder
[IMAP+] Empty trash doesn't work with a real trash folder
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.8.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 723376 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-12-03 21:29 UTC by brad haack
Modified: 2014-02-12 10:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
log file generated with CAMEL_DEBUG=all evolution >& evo2.log (94.75 KB, application/gzip)
2013-12-03 21:30 UTC, brad haack
Details

Description brad haack 2013-12-03 21:29:01 UTC
File-Empty trash doesn't empty the trash.
Also I have 'Empty trash folders' set to On exit, once per day, but this doesn't work either.
If I select all of the files in trash and delete them, that works.

See attached log.
Comment 1 brad haack 2013-12-03 21:30:54 UTC
Created attachment 263448 [details]
log file generated with CAMEL_DEBUG=all evolution >& evo2.log
Comment 2 André Klapper 2013-12-04 23:13:12 UTC
Extracted from attached log:

DB SQL operation [BEGIN] started
Camel SQL Exec:
BEGIN
Camel SQL Exec:
CREATE TABLE IF NOT EXISTS Deletes (id INTEGER primary key AUTOINCREMENT not null, uid TEXT, time TEXT, mailbox TEXT)
Camel SQL Exec:
INSERT OR REPLACE INTO Deletes (uid, mailbox, time) SELECT uid, '.#evolution/Junk', strftime("%s", 'now') FROM '.#evolution/Junk'
Error in SQL EXEC statement: INSERT OR REPLACE INTO Deletes (uid, mailbox, time) SELECT uid, '.#evolution/Junk', strftime("%s", 'now') FROM '.#evolution/Junk' [no such table: .#evolution/Junk].
Camel SQL Exec:
DELETE FROM folders WHERE folder_name = '.#evolution/Junk'
Camel SQL Exec:
DROP TABLE '.#evolution/Junk' 
Error in SQL EXEC statement: DROP TABLE '.#evolution/Junk'  [no such table: .#evolution/Junk].
Camel SQL Exec:
DROP TABLE '.#evolution/Junk_bodystructure' 
Error in SQL EXEC statement: DROP TABLE '.#evolution/Junk_bodystructure'  [no such table: .#evolution/Junk_bodystructure].
Camel SQL Exec:
COMMIT
DB Operation ended. Time Taken : 0.000245
###########
DB SQL operation [BEGIN] started
Camel SQL Exec:
BEGIN
Camel SQL Exec:
CREATE TABLE IF NOT EXISTS Deletes (id INTEGER primary key AUTOINCREMENT not null, uid TEXT, time TEXT, mailbox TEXT)
Camel SQL Exec:
INSERT OR REPLACE INTO Deletes (uid, mailbox, time) SELECT uid, 'Untitled', strftime("%s", 'now') FROM 'Untitled'
Error in SQL EXEC statement: INSERT OR REPLACE INTO Deletes (uid, mailbox, time) SELECT uid, 'Untitled', strftime("%s", 'now') FROM 'Untitled' [no such table: Untitled].
Camel SQL Exec:
DELETE FROM folders WHERE folder_name = 'Untitled'
Camel SQL Exec:
DROP TABLE 'Untitled' 
Error in SQL EXEC statement: DROP TABLE 'Untitled'  [no such table: Untitled].
Camel SQL Exec:
DROP TABLE 'Untitled_bodystructure' 
Error in SQL EXEC statement: DROP TABLE 'Untitled_bodystructure'  [no such table: Untitled_bodystructure].
Camel SQL Exec:
COMMIT
DB Operation ended. Time Taken : 0.000325
###########
DB SQL operation [BEGIN] started
Camel SQL Exec:
BEGIN
Camel SQL Exec:
CREATE TABLE IF NOT EXISTS Deletes (id INTEGER primary key AUTOINCREMENT not null, uid TEXT, time TEXT, mailbox TEXT)
Camel SQL Exec:
INSERT OR REPLACE INTO Deletes (uid, mailbox, time) SELECT uid, '.#evolution/Trash', strftime("%s", 'now') FROM '.#evolution/Trash'
Error in SQL EXEC statement: INSERT OR REPLACE INTO Deletes (uid, mailbox, time) SELECT uid, '.#evolution/Trash', strftime("%s", 'now') FROM '.#evolution/Trash' [no such table: .#evolution/Trash].
Camel SQL Exec:
DELETE FROM folders WHERE folder_name = '.#evolution/Trash'
Camel SQL Exec:
DROP TABLE '.#evolution/Trash' 
Error in SQL EXEC statement: DROP TABLE '.#evolution/Trash'  [no such table: .#evolution/Trash].
Camel SQL Exec:
DROP TABLE '.#evolution/Trash_bodystructure' 
Error in SQL EXEC statement: DROP TABLE '.#evolution/Trash_bodystructure'  [no such table: .#evolution/Trash_bodystructure].
Camel SQL Exec:
COMMIT
DB Operation ended. Time Taken : 0.000345
Comment 3 Matthew Barnes 2013-12-05 00:46:51 UTC
Empty Trash works fine for virtual Trash folders.

We haven't yet completed the illusion of file-manager-style Trash folders yet.  Still have to explicitly mark messages for deletion, even if the messages are in an IMAP folder is named "Trash".
Comment 4 Joerg C. Frings-Fuerst 2014-01-03 11:16:44 UTC
see: https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/1265768
Comment 5 Milan Crha 2014-02-11 18:57:44 UTC
*** Bug 723376 has been marked as a duplicate of this bug. ***
Comment 6 Milan Crha 2014-02-12 10:42:19 UTC
I fixed this for 3.12.0:

Created commit 112aae3 in eds master (3.11.90+) [1]

[1] https://git.gnome.org/browse/evolution-data-server/commit/?id=112aae3