Exemplo n.º 1
0
 public void Dispose()
 {
     if (this.mailparser != null)
     {
         this.mailparser = null;
     }
 }
Exemplo n.º 2
0
        public Worker(Konfiguration cfg, Logger log, Language lang, Outlook.Application objOutlook)
        {
            Forms.Application.EnableVisualStyles();
            Forms.Application.DoEvents();

            this.config   = cfg;
            this.logger   = log;
            this.language = lang;

            this.outlook = objOutlook;

            this.mailparser = new MailParser(this.logger, this.outlook, this);
            this.mailparser.resetAutotraining(this.config.UseAutoTrain, this.config.AutoTraining_Spam, this.config.AutoTraining_Ham);

            this.config.SettingsChanged += config_SettingsChanged;
        }