Closed Bug 345883 Opened 18 years ago Closed 18 years ago

virtual folders with local folder body search keep mailbox files open

Categories

(MailNews Core :: Backend, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

If you set up a virtual folder that has a body search as one of its criteria (in my case, a cross folder virtual folder, but I don't think it matters), the local mail folder that is being searched will have its file held open if a message arrives in that folder and the body search is executed. This causes problems if you try to compact the folder, because the compact fails when it tries to rename the underlying mail folder, because someone has the file open.

The underlying cause is that the search scope is holding onto an input stream to the mail folder. The fix is to set up the scope right before doing a search and destroy the scope right after. This will cause us to open and close the mail folder more than before, but we really shouldn't be holding the folder open.
Attached patch proposed fixSplinter Review
Attachment #230593 - Flags: superreview?(mscott)
Attachment #230593 - Flags: superreview?(mscott)
Attachment #230593 - Flags: superreview+
Attachment #230593 - Flags: approval-thunderbird2+
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: