Open Bug 401295 Opened 17 years ago Updated 2 years ago

Use new shutdown service to empty trash, expunge inbox, compact folders on shutdown

Categories

(MailNews Core :: Backend, defect)

defect

Tracking

(Not tracked)

People

(Reporter: Bienvenu, Unassigned)

References

Details

(Whiteboard: [patchlove][has draft patch])

Attachments

(1 file)

Attached patch work in progressSplinter Review
In order to test the new shutdown service, and refine its API, I've done a little work to move expunging the inbox and emptying trash on shutdown to the new shutdown service, and reworked the compact folder code so that it can be used by the shutdown service (which mostly involves making sure the url listener is notified). The attached patch basically works though it needs to be improved on. It should use a pref to decide if it should compact on exit, and shouldn't hard-code the per-server threshold (though using the global threshold isn't the right thing either). We could perhaps prompt the user if they want to compact folders on exit as well...
making dependent on shutdown service bug.
Depends on: 397498
if we do this, instead of just commenting out the call to hashshutdown servers, we should remove all that code as well.
OS: Windows XP → All
Hardware: PC → All
Product: Core → MailNews Core
Blocks: 76691
Assignee: mozilla → nobody
Whiteboard: [patchlove][has draft patch]
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: