private void StartWorker ()
		{
			Logger.Log.Info ("Starting Thunderbird backend");
			Stopwatch watch = new Stopwatch ();
			watch.Start ();
			
			string root_path = Thunderbird.GetRootPath ();
			if (!Directory.Exists (root_path)) {
				GLib.Timeout.Add (60000, new GLib.TimeoutHandler (IndexDataCheck));
				Logger.Log.Info ("No data available for indexing in {0}", root_path);
				return;
			}
			
			indexer = new ThunderbirdIndexer (this, Thunderbird.GetProfilePaths (root_path));
			indexer.Crawl ();
			
			watch.Stop ();
			Logger.Log.Info ("Thunderbird backend done in {0}s", watch.ElapsedTime);
		}
Beispiel #2
0
        private void StartWorker()
        {
            Logger.Log.Info("Starting Thunderbird backend");
            Stopwatch watch = new Stopwatch();

            watch.Start();

            string root_path = Thunderbird.GetRootPath();

            if (!Directory.Exists(root_path))
            {
                GLib.Timeout.Add(60000, new GLib.TimeoutHandler(IndexDataCheck));
                Logger.Log.Info("No data available for indexing in {0}", root_path);
                return;
            }

            indexer = new ThunderbirdIndexer(this, Thunderbird.GetProfilePaths(root_path));
            indexer.Crawl();

            watch.Stop();
            Logger.Log.Info("Thunderbird backend done in {0}s", watch.ElapsedTime);
        }