Open Bug 1934994 Opened 2 months ago Updated 2 months ago

Empty Trash folders cannot be compacted on Gmail and Outlook

Categories

(MailNews Core :: Database, defect)

Thunderbird 134
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:

  1. Load Gmail or Outlook account.
  2. Empty Trash or Deleted folder
  3. 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.

Thanks for reporting this.
I've seen this before, and can reproduce with daily build on Mac.

Status: UNCONFIRMED → NEW
Component: Untriaged → Database
Ever confirmed: true
Flags: needinfo?(geoff)
Keywords: regression
Product: Thunderbird → MailNews Core

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?

Flags: needinfo?(geoff)

Mine is set to sync = offline.

  1. If I do empty trash (folder size =0) then compact folder fails.
  2. 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)
  3. Subsequent empty trash (folder size =0) then compact works.
  4. delete a message in another folder (folder size =0), empty trash, then compact fails.

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.

Duplicate of bug 1935124?

See Also: → 1935124

(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.

Whiteboard: [likely duplicate of bug 1935124]
You need to log in before you can comment on or make changes to this bug.