created configuration and base code

This commit is contained in:
2020-05-01 19:34:55 +02:00
parent 00ef3d83a3
commit 8084640f26
6 changed files with 168 additions and 2 deletions

22
index.js Normal file
View File

@@ -0,0 +1,22 @@
const q = require('daskeyboard-applet');
const Imap = require('imap');
const logger = q.logger;
function getTimestamp() {
return Math.round(new Date().getTime() / 1000);
}
class ImapAlerts extends q.DesktopApp {
constructor() {
super();
this.pollingInterval = 60000;
this.timestamp = getTimestamp();
logger.info("Waiting for new mail to arrive");
}
async run() {
logger.info("Imap running");
}
}