Closed Bug 1782918 Opened 3 years ago Closed 7 days ago

The calculation for folder compacting does not match size displayed in the user interface

Categories

(Thunderbird :: Folder and Message Lists, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1260698

People

(Reporter: adrien.rybarczyk, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: dupeme)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36

Steps to reproduce:

In the preferences tab,
"Compact all folders when it will save over MB in total"
does not seem to be correct with regard to the calculations in nsMsgDBFolder.cpp

Actual results:

if (totalExpungedBytes > ((int64_t)purgeThreshold * 1024)) {

totalExpungedBytes seems to be defined in bytes.
In the interface the field offlineCompactFolderMin seems to be expressed in kb, not mb.

Expected results:

Change the translation to "when it saves at least XXXX KB in total" or change the calculation.

PS: if the user has "Ask every time before compacting" unchecked, if ever the compacting is not done, a popup will be displayed to the user that the compacting could not be done.
While he had originally asked not to be notified.

I just saw, yes it looks good.
However, for a 1024 MB setting, I have already had cases where the compacting is triggered and in the end saves 100 MB.

(In reply to adrien.rybarczyk from comment #2)

I just saw, yes it looks good.
However, for a 1024 MB setting, I have already had cases where the compacting is triggered and in the end saves 100 MB.

We've had issues reported where compacting is prematurely triggered.

Keywords: dupeme
Summary: The calculation for folder compacting does not match what is displayed in the user interface → The calculation for folder compacting does not match size displayed in the user interface

Adrien,
Are you still seeing this with version 128 or newer?

Flags: needinfo?(adrien.rybarczyk)

Yes, there are always cases where it displays an impossible amount of space to save
An example from today:

Flags: needinfo?(adrien.rybarczyk)
Attached image beforeCompacting.PNG
Attached image afterCompacting.PNG

adrien, are you still seeing this issue?

Possible duplicate to Bug 1260698 - Compact folders - shows wrong estimated and compacted size. Compacts too often. totalExpungedBytes number is wrong.

I haven't had any recent cases with impossible values.

However, I still have noticed differences between what's displayed in the popup and what's displayed in the gain once the compression is done.

Status: UNCONFIRMED → RESOLVED
Closed: 7 days ago
Depends on: 1260698
Duplicate of bug: 1260698
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: