private static void run_with_runner() { foreach (AccountConfigurationElement account in SidePOPConfiguration.settings.accounts) { if (account.enabled) { SidePopEmailWatcher email_watcher = new SidePopEmailWatcher(new DefaultPop3Client(account.hostName, account.hostPort, account.useSSL, account.userName, account.password), account.minutes_between_checks); email_watcher.MessagesReceived += runner_messages_received; email_watcher.start(); } } }
private static void run_with_runner() { foreach (AccountConfigurationElement account in SidePOPConfiguration.settings.accounts) { if (account.enabled) { SidePopEmailWatcher email_watcher = new SidePopEmailWatcher(new DefaultPop3Client(account.hostName, account.hostPort, account.useSSL, account.userName, account.password),account.minutes_between_checks); email_watcher.MessagesReceived += runner_messages_received; email_watcher.start(); } } }