[tracker] thunderbird: Move indexing startup out of MailStore initialization



commit 110a409790aa21970deb591794c553201d84fca5
Author: Adrien Bustany <adrien bustany nokia com>
Date:   Thu Aug 4 17:04:23 2011 +0300

    thunderbird: Move indexing startup out of MailStore initialization
    
    The call initializing the folder walking is now in plugin.js::onLoad

 .../thunderbird/chrome/content/mailstore.js        |    2 --
 src/plugins/thunderbird/chrome/content/plugin.js   |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/thunderbird/chrome/content/mailstore.js b/src/plugins/thunderbird/chrome/content/mailstore.js
index 2857a50..819c576 100644
--- a/src/plugins/thunderbird/chrome/content/mailstore.js
+++ b/src/plugins/thunderbird/chrome/content/mailstore.js
@@ -79,8 +79,6 @@ org.bustany.TrackerBird.MailStore = {
 		this._indexMessageCallback = function(msg) { store.indexMessage(msg); }
 		this._removeMessageCallback = function(msg) { store.removeMessage(msg); }
 
-		this.listAllFolders();
-
 		return true;
 	},
 
diff --git a/src/plugins/thunderbird/chrome/content/plugin.js b/src/plugins/thunderbird/chrome/content/plugin.js
index ce8d571..9f2c123 100644
--- a/src/plugins/thunderbird/chrome/content/plugin.js
+++ b/src/plugins/thunderbird/chrome/content/plugin.js
@@ -42,6 +42,8 @@ org.bustany.TrackerBird.Plugin = {
 			_mailstore = null;
 			return;
 		}
+
+		this._mailstore.listAllFolders();
 	},
 
 	onUnload: function() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]