Closed Bug 897465 Opened 13 years ago Closed 10 years ago

IMAP Folders: Show correct folder size when > 4GB

Categories

(Thunderbird :: Folder and Message Lists, defect)

17 Branch
x86_64
Windows Vista
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Unassigned)

References

Details

(Whiteboard: [fixed in TB51])

User Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0 (Beta/Release) Build ID: 20130618114625 Steps to reproduce: Thunderbird 17.0.7 ESR IMAP account. Folder > 4 GB Showing folder size: - Right click on folder - Properties - General (Tab) - Shows "Size on <datenträger>": Actual results: The result is shown as modulo 4 GByte. Expected results: Show the real size, not the modulo 4 GB. Especially, as TB cannot handle local folders >4GB it is important for me, to get information about real folder size to make local copies of folders into "local folders". When the folder in reality is not 0,5 GB but 4,5 GB, a lot of time is wasted, when copying of the folder fails in the end (after a lot of time waiting for completion). So, what would be needed: A possibility to get information about the real size of a folder. (BTW: For the whole account (all folders in a sum) this works fine in the "Quota"-Tab.)
Addition: To reproduce the error, an additional condition: TB does NOT sync mailbodies, headers only.
There is a patch already for this in bug 789679. However that one is already at 115 comments so we should really split some partial fixes out of it (like move something here). The problem is, there are already at least 20 comments about that patch so losing that context is not good. What are the options on this?
Flags: needinfo?
Flags: needinfo?
Options => opinions.
Flags: needinfo?
@aceman Thanks for the link to bug 789697. But I think, this bug deals with something else: Warning, if a local stored folder reaches it's maximum size of 4 GB. What I mean is showing the correct size of a remote stored IMAP-Folder, that has not a 4 GB limit and can become as large as 10 or 20 or more GByte.
Flags: needinfo?
So despite the patch in bug 789679 which landed in TB15, TB17 has a display issue
Component: Message Reader UI → Folder and Message Lists
Depends on: 789679
I don't think the patch fixing this particular problem in bug 789679 has landed. So it is expected this doesn't work even in TB31. I'll refresh the effort after Tb31 branches, as those are quite risky changes.
FYI. Value shown at "Size on Disk:" field of Folder Properties is perhaps sizeOnDisk value. > http://mxr.mozilla.org/comm-central/search?string=sizeondisk > /mailnews/base/public/nsIMsgFolder.idl > line 296 -- attribute unsigned long sizeOnDisk; > Even in IMAP. > /mailnews/imap/src/nsImapMailFolder.cpp > line 1770 -- NS_IMETHODIMP nsImapMailFolder::GetSizeOnDisk(uint32_t * size)
I think we have done some work to improve the 4GB+ support in TB. Is this bug still happening?
Flags: needinfo?(bugzilla)
The data type of the GetSizeOnDisk() was changed from uint32_t to int64_t. Is that enough?
For me this bug has been solved some months ago with an update of TB (I don't remember the version, sorry). Now my TB shows in the "folder-coulumn" (re-translated from German) the correct sizes, i.e. 22168MB Thank you very much for your efforts! Knut
Flags: needinfo?(bugzilla)
OK, thanks. Then fixed by bug 789679 comment 135.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in TB51]
You need to log in before you can comment on or make changes to this bug.