Skip to content

Commit

Permalink
ts fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Jun 28, 2022
1 parent 567112e commit 5d47f4f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import _ from 'underscore';

import { settings } from '../../../settings';
import { settings } from '../../../settings/server';
import { DirectReplyIMAPInterceptor, POP3Helper } from '../lib/interceptDirectReplyEmails.js';

let client;

const startEmailIntercepter = _.debounce(async function () {
console.log('Email Intercepter...');
const protocol = settings.get('Direct_Reply_Protocol');
Expand Down Expand Up @@ -33,6 +32,6 @@ const startEmailIntercepter = _.debounce(async function () {
client.start();
}, 1000);

settings.onload(/^Direct_Reply_.+/, startEmailIntercepter);
settings.watchByRegex(/^Direct_Reply_.+/, startEmailIntercepter);

startEmailIntercepter();

0 comments on commit 5d47f4f

Please sign in to comment.