created configuration and base code
This commit is contained in:
22
index.js
Normal file
22
index.js
Normal 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");
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user