// We need to scan the entries initially to fill up last_modified_table
        // Otherwise, we might miss deletions that occur before any addition
        private void ScanEntriesInitial()
        {
            EntriesIndexableGenerator generator = new EntriesIndexableGenerator(this, korganizer_file, last_modified_table, true);

            // just a dummy scan
            while (generator.HasNextIndexable())
            {
                generator.GetNextIndexable();
            }
        }
        /////////////////////////////////////////////////

        private void Index()
        {
            if (ThisScheduler.ContainsByTag("KOrganizer"))
            {
                Logger.Log.Debug("Not adding task for already running KOrganizer task");
                return;
            }

            // Then add the entries from the KOrganizer file
            EntriesIndexableGenerator generator = new EntriesIndexableGenerator(this, korganizer_file, last_modified_table, false);

            Scheduler.Task task;
            task     = NewAddTask(generator);
            task.Tag = "KOrganizer";
            // Make sure add task gets scheduled after delete task
            task.Priority    = Scheduler.Priority.Delayed;
            task.SubPriority = 0;
            ThisScheduler.Add(task);
        }
		/////////////////////////////////////////////////

		private void Index ()
		{
			if (ThisScheduler.ContainsByTag ("KOrganizer")) {
				Logger.Log.Debug ("Not adding task for already running KOrganizer task");
				return;
			}

			// Then add the entries from the KOrganizer file
			EntriesIndexableGenerator generator = new EntriesIndexableGenerator (this, korganizer_file, last_modified_table, false);
			Scheduler.Task task;
			task = NewAddTask (generator);
			task.Tag = "KOrganizer";
			// Make sure add task gets scheduled after delete task
			task.Priority = Scheduler.Priority.Delayed;
			task.SubPriority = 0;
			ThisScheduler.Add (task);
		}
		// We need to scan the entries initially to fill up last_modified_table
		// Otherwise, we might miss deletions that occur before any addition
		private void ScanEntriesInitial ()
		{
			EntriesIndexableGenerator generator = new EntriesIndexableGenerator (this, korganizer_file, last_modified_table, true);

			// just a dummy scan
			while (generator.HasNextIndexable ())
				generator.GetNextIndexable ();
		}