Empty Trash folders cannot be compacted on Gmail and Outlook
Categories
(MailNews Core :: Database, defect)
Tracking
(thunderbird135 affected)
Tracking | Status | |
---|---|---|
thunderbird135 | --- | affected |
People
(Reporter: philip, Unassigned)
References
Details
(Keywords: regression, Whiteboard: [likely duplicate of bug 1935124])
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0
Steps to reproduce:
- Load Gmail or Outlook account.
- Empty Trash or Deleted folder
- Right-click on Account name and choose Compact
Actual results:
An error dialog pops up:
The folder '(Trash folder) on (account name)' could not be compacted because writing to folder failed. Verify that you have enough disk space, and that you have privileges to the file system, then try again.
No error comes up if the trash folder has messages in it. This only happens if the trash folder is empty. Problem started with version 134.0b1, continues with version 134.0b2.
Expected results:
No error should have come up. Mailbox should have compacted without issue.
Comment 1•2 months ago
|
||
Thanks for reporting this.
I've seen this before, and can reproduce with daily build on Mac.
Comment 2•2 months ago
|
||
Interesting. I tried this and found it wouldn't compact that folder at all, and the reason was that the folder wasn't marked "for offline use" even though it quite clearly has a copy of the messages for offline use. Once I ticked that box in the folder's properties, it worked as expected.
Does that match what you see?
Comment 3•2 months ago
|
||
Mine is set to sync = offline.
- If I do
empty trash
(folder size =0) then compact folder fails. - If I delete all the messages in trash (do not
empty trash
), compact on the individual folder works. (And I assume so would compact all folders would work) - Subsequent
empty trash
(folder size =0) thencompact
works. - delete a message in another folder (folder size =0), empty trash, then compact fails.
Comment 4•2 months ago
|
||
In that case it's probably something to do with the weird way our code empties the trash, which throws away the folder and starts a new one. I've never figured out why.
Comment 6•2 months ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #5)
Duplicate of bug 1935124?
Yes very likely.
If you want, let's keep it open until that one is fixed, then try to reproduce again.
Updated•2 months ago
|
Description
•