Closed Bug 255326 Opened 20 years ago Closed 20 years ago

commandglue.js method IsSpecialFolder always says sub-folders of inbox are "special"

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

(Keywords: fixed-aviary1.0)

Attachments

(1 file, 1 obsolete file)

IsSpecialFolder() tells us that any sub-folder of the INBOX is an inbox folder,
which means we never close the summary files for cyrus/courier servers, because
we think they're all the INBOX (assuming you haven't set the online dir to INBOX.) 

IsSpecialFolder does this to detect if a folder is a sub-folder of the trash,
but it shouldn't do it for the INBOX.
Attached patch proposed fix (obsolete) — Splinter Review
add a parameter to IsSpecialFolder, deep, that checks sub-folders, and change
callers. All callers except for INBOX pass true for deep, currently, and we
pass false for INBOX, so that we won't say sub-folders of the inbox are the
inbox!
Attachment #155933 - Flags: superreview?(mscott)
Status: NEW → ASSIGNED
Summary: commandglue.js method IsSpecialFolder ialways says sub-folders of inbox are "special" → commandglue.js method IsSpecialFolder always says sub-folders of inbox are "special"
Attached patch better fixSplinter Review
I've renamed the "deep" var to checkancestors, which is a more accurate name,
and simplified the IsSpecialFolder method.
Attachment #155933 - Attachment is obsolete: true
Attachment #155933 - Flags: superreview?(mscott)
Attachment #155936 - Flags: superreview?(mscott)
Comment on attachment 155936 [details] [diff] [review]
better fix

you might need to change mail\searchBar.js too.
Attachment #155936 - Flags: superreview?(mscott) → superreview+
thx, good catch, it was in my tree, but I pruned it out accidentally from the
diffs file when editing out the non-relevant diffs...:-(
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Keywords: fixed-aviary1.0
Resolution: --- → FIXED
It hardly seems worth having a deep parameter to IsSpecialFolder - just use
msgFolder.flags & MSG_FOLDER_FLAG_INBOX (or whatever) instead.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: