Closed
Bug 114501
Opened 23 years ago
Closed 23 years ago
Mail folders are always refreshed on OS/2
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.7
People
(Reporter: julien.pierre, Assigned: sspitzer)
References
Details
Attachments
(1 file)
716 bytes,
patch
|
Bienvenu
:
review+
sspitzer
:
superreview+
|
Details | Diff | Splinter Review |
If you have a large Inbox mail folder, this is a very annoying bug :
1. start mozilla messenger
2. mozilla builds the Inbox folder summary file when first accessed
3. exit mozilla
4. restart mozilla messenger5. mozilla again rebuilds the folder summary file ,
even though there is no need as no database corruption happened
This applies to all mail folders, not just Inbox. It causes the mail application
to be very slow on OS/2.
Mike Kaply of IBM helped me debug this over IRC today and it turned out there is
a date problem with time_t being used. On OS/2 time_t is a double and that
caused problem in the code - I guess it thought the summary file was always out
of date with the folder.
Comment 1•23 years ago
|
||
On OS/2, time_t is a double (you don't want to know - see bug
http://bugzilla.mozilla.org/show_bug.cgi?id=104047)
anyway, the msgdb code uses time_t for the mFolderDate here -
http://lxr.mozilla.org/seamonkey/source/mailnews/db/msgdb/public/nsDBFolderInfo.h#109
But honestly, I don't think it should.
If you look through the various code that access mFolderDate, it treats as a
PRUint32 explicitly (including some casts)
So the fix is this:
< time_t m_folderDate;
> PRUint32 m_folderDate;
I've rebuilt mailnews with this and had no problems. It doesn't appear that
mailnews uses mFolderDate for any actual C runtime time/date calls - it only
uses it for storage.
Comment 2•23 years ago
|
||
Comment on attachment 61180 [details] [diff] [review]
Change time_t to PRUint32
r=bienvenu
Attachment #61180 -
Flags: review+
Assignee | ||
Comment 3•23 years ago
|
||
Comment on attachment 61180 [details] [diff] [review]
Change time_t to PRUint32
sr=sspitzer
I guess it wasn't nsFileSpec, my gut lied to me!
Attachment #61180 -
Flags: superreview+
Comment 4•23 years ago
|
||
a=brendan@mozilla.org for checkin to the 0.9.7 branch.
/be
Keywords: mozilla0.9.7+
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.7
Comment 5•23 years ago
|
||
Fix checked into trunk and 0.9.7 branch
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•23 years ago
|
Keywords: fixed0.9.7
julien, can you verify this is fixed since it appears to be reproducible on IBM
OS/2. I did not see the problem on my WinXP and I don't have access to an OS/2
system.
Reporter | ||
Comment 7•23 years ago
|
||
Yes, I verified it on a couple of my builds in the last few days. Marking verified.
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•