Open Bug 1853584 Opened 1 year ago Updated 5 months ago

File -> Compact Folders acts only on current folder. Should compact all folders of an account.

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 115
Unspecified
All
defect

Tracking

(thunderbird_esr115 affected, thunderbird128 affected)

Tracking Status
thunderbird_esr115 --- affected
thunderbird128 --- affected

People

(Reporter: mark, Unassigned)

References

(Regression)

Details

(Keywords: regression, triaged)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0

Steps to reproduce:

Click File -> Compact Folders

Actual results:

With Thunderbird 115.2.2 (64-bit) and an IMAP account it appears that only the currently open folder is requested to be compacted.

Expected results:

All folders in the account should be compacted.

I don't see that.

Perhaps I am confused. In older versions, when I selected File -> Compact Folders, the status line messages cycled through messages like

<account name> Compacting folder <folder name>

for all folders in the account. Now when I select File -> Compact Folders it just shows an unchanging

<account name> Compacting folder

as it does when I right-click a folder and select Compact.

I saw the cycling when I tried it just now.

I do not see that with Thunderbird 115.2.2 (64-bit) or with Thunderbird 115.2.2 (64-bit) on Mac OS 11.7.10.

I did see it previously with Thunderbird 102.15.1 (64-bit) and older versions.

Duplicate of this bug: 1855426
See Also: → 1850687

Maybe it's related to subfolders (bug 1850687)

I am now also seeing this issue with Thunderbird 115.3.1 (64-bit) on Ubuntu 20.04

Duplicate of this bug: 1850687
See Also: 1850687
Duplicate of this bug: 1845066
See Also: → 1852998
See Also: → 1855985

This is mostly a duplicate of what I reported back at bug 1827973.
What I see is if you are selected on a folder and do file | compact folders it compacts only the selected folder. I think the reporter is expecting it to compact all the folders within the account of the selected folder, not just the selected folder.
If you are selected on the top level account name, file | compact folders compacts all the folder of that account. It doesn't touch other accounts which I suppose is correct.

Bug 1827973 points out issues with "compacting" maildir folders so not exactly a duplicate of this.

See Also: → 1827973

I think the reporter is expecting it to compact all the folders within the account of the selected folder, not just the selected folder.

Yes, that is what I expect and the way it worked previously in older versions like 102.15.1

As I find out more about this, I think the current 115 behavior might be by design and might be OK. What I see now is I can right click a folder in the accounts and folders panel and select compact from the context menu and the folder is compacted, and I can right click an account in the accounts and folders panel and select compact from the context menu and all the folders in the account are compacted. Similar behavior occurs if I select a folder or account in the accounts and folders panel and then select compact from the file menu. In other words, right clicking an item and selecting compact produces the same result as selecting the item and then selecting compact from the file menu.

The difference in prior versions is selecting a folder and then selecting compact from the file menu used to compact all folders in the account and now only compacts the selected folder. While this is different from prior behavior, I can't say it's wrong, especially since I now realize I can compact all the folders in the account by right-clicking the account and selecting compact from the context menu.

It cannot be intended behavior, because menu selection is "Compact Folders". As in plural. There is no Compact on File menu.

(In reply to Virgo Pärna from comment #13)

It cannot be intended behavior, because menu selection is "Compact Folders". As in plural. There is no Compact on File menu.

Good point.

I agree with the last comments : this menu option compacts all folders only if the account name is selected on the left pane, and if any other folder is selected, the menu option only compacts the current folder although it's still named "compact folderS".

For the sake of clarity and UX, this should be modified. A simple fix would be to gray out the option (as there is a per-folder compact button on top) when a normal folder is selected.

The better fix would be to have an switch or popup asking if one wants to also compact subfolders when acting on a normal folder.

Perhaps a simpler fix is to just change the text in the File dropdown from Compact Folders to Compact selected Folder(s)

This bug was not caused by bug 1890448. But perhaps the compact rewrite will bring more scrutiny.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: triaged
OS: Unspecified → All
Regressed by: sn-folderpane
See Also: → 1890448
Summary: File -> Compact Folders acts only on current folder → File -> Compact Folders acts only on current folder. Should compact all folders of an account.
Duplicate of this bug: 1808209
You need to log in before you can comment on or make changes to this bug.