예제 #1
0
        public void IndexMbox(FileInfo mboxInfo, bool inotify_event)
        {
            // If there's already a task running for this mbox,
            // don't interrupt it.
            if (ThisScheduler.ContainsByTag(mboxInfo.FullName))
            {
                Logger.Log.Debug("Not adding task for already running task: {0}", mboxInfo.FullName);
                return;
            }

            Logger.Log.Debug("Will index mbox {0}", mboxInfo.FullName);
            EvolutionMailIndexableGeneratorMbox generator = new EvolutionMailIndexableGeneratorMbox(this, mboxInfo);

            Scheduler.Task task;
            task     = NewAddTask(generator);
            task.Tag = mboxInfo.FullName;
            ThisScheduler.Add(task);

            AddGenerator(generator, inotify_event);
        }
		public void IndexMbox (FileInfo mboxInfo, bool inotify_event)
		{
			// If there's already a task running for this mbox,
			// don't interrupt it.
			if (ThisScheduler.ContainsByTag (mboxInfo.FullName)) {
				Logger.Log.Debug ("Not adding task for already running task: {0}", mboxInfo.FullName);
				return;
			}

			Logger.Log.Debug ("Will index mbox {0}", mboxInfo.FullName);
			EvolutionMailIndexableGeneratorMbox generator = new EvolutionMailIndexableGeneratorMbox (this, mboxInfo);
			Scheduler.Task task;
			task = NewAddTask (generator);
			task.Tag = mboxInfo.FullName;
			ThisScheduler.Add (task);

			AddGenerator (generator, inotify_event);
		}