Bug 1179442, imap maildir folder has unrepairable incorrect unread count, r=mkmelin, a=rkent
authorR Kent James <rkent@caspia.com>
Mon, 07 Sep 2015 16:50:16 -0700
changeset 26295 166d8e44fb957be701d3163099599caf846e06e8
parent 26294 018e557a74f3c5bb34b874c1fe1d96bea027be69
child 26296 9ef3bdaaa318a8db7c2551372b8b1b20a44fdd71
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, rkent
bugs1179442
Bug 1179442, imap maildir folder has unrepairable incorrect unread count, r=mkmelin, a=rkent
mail/base/content/folderPane.js
--- a/mail/base/content/folderPane.js
+++ b/mail/base/content/folderPane.js
@@ -2410,18 +2410,20 @@ let gFolderTreeController = {
       //  lexically captured and available to us.
       if (folder.locked) {
         folder.throwAlertMsg("operationFailedFolderBusy", msgWindow);
         return;
       }
       if (folder.supportsOffline) {
         // Remove the offline store, if any.
         let offlineStore = folder.filePath;
+        // XXX todo: figure out how to delete a maildir directory async. This
+        // delete causes main thread lockup for large maildir folders.
         if (offlineStore.exists())
-          offlineStore.remove(false);
+          offlineStore.remove(true);
       }
       gFolderDisplay.view.close();
 
       // Send a notification that we are triggering a database rebuild.
       MailServices.mfn.notifyItemEvent(folder, "FolderReindexTriggered", null);
 
       folder.msgDatabase.summaryValid = false;