Exemple #1
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;
        }
Exemple #2
0
        public AktionForm(Konfiguration cfg, Logger log, Language lang, MailParser mp)
        {
            InitializeComponent();

            this.mailparser = mp;

            this.config = cfg;
            this.loadFromConfig();

            this.logger = log;

            this.language = lang;
            this.loadFromLanguage();

            this.tB_afterTrainSpam_MoveTo.Enabled = this.rB_afterTrainSpam_MoveTo.Checked;
            this.tB_afterTrainSpam_PrefixWith.Enabled = this.cB_afterTrainSpam_PrefixWith.Checked;
            this.tB_afterTrainHam_MoveTo.Enabled = this.rB_afterTrainHam_MoveTo.Checked;
            this.tB_afterTrainHam_PrefixWith.Enabled = this.cB_afterTrainHam_PrefixWith.Checked;
        }
Exemple #3
0
        public MainForm(Konfiguration cfg, Logger log, Language lang, MailParser mp, Outlook.Application objOutlook, Worker w)
        {
            InitializeComponent();

            this.worker = w;
            this.outlook = objOutlook;

            this.mailparser = mp;

            this.config = cfg;
            this.loadFromConfig();

            this.logger = log;

            this.language = lang;
            this.loadFromLanguage();

            this.bt_sendLogToDeveloper.Visible = false;
            this.bt_thankYou.Visible = false;
        }
Exemple #4
0
        public TrainingForm(Konfiguration cfg, Logger log, Language lang, MailParser mp)
        {
            InitializeComponent();

            this.mailparser = mp;

            this.config = cfg;
            this.loadFromConfig();

            this.logger = log;

            this.language = lang;
            this.loadFromLanguage();

            this.tB_enterFolderForHam.Enabled = this.cB_useAutoTrain.Checked;
            this.tB_enterFolderForSpam.Enabled = this.cB_useAutoTrain.Checked;
            this.tB_enterForwardForHam.Enabled = this.rB_trainWithForward.Checked;
            this.tB_enterForwardForSpam.Enabled = this.rB_trainWithForward.Checked;
            this.tB_enterLoginOfDSpam.Enabled = this.rB_trainWithWebUI.Checked;
            this.tB_enterPasswordOfDSpam.Enabled = this.rB_trainWithWebUI.Checked;
            this.tB_enterUrlOfDSpam.Enabled = this.rB_trainWithWebUI.Checked;
        }
Exemple #5
0
 public void Dispose()
 {
     if (this.mailparser != null)
     {
         this.mailparser = null;
     }
 }