This commit is contained in:
Andris Reinman 2022-07-19 09:22:46 +03:00
parent 7cc5b2b75c
commit 35d7dff0da
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364
2 changed files with 12 additions and 2 deletions

View file

@ -5,7 +5,17 @@ const log = require('npmlog');
const PluginHandler = require('zone-mta/lib/plugin-handler'); const PluginHandler = require('zone-mta/lib/plugin-handler');
const db = require('./db'); const db = require('./db');
module.exports.handler = false; module.exports.handler = {
// dummy handler
runHooks(...args) {
if (args.length && typeof args[args.length - 1] === 'function') {
args[args.length - 1]();
}
// assume promise
return new Promise(resolve => setImmediate(resolve));
}
};
module.exports.init = context => { module.exports.init = context => {
module.exports.handler = new PluginHandler({ module.exports.handler = new PluginHandler({

View file

@ -1,6 +1,6 @@
{ {
"name": "wildduck", "name": "wildduck",
"version": "1.37.1", "version": "1.37.2",
"description": "IMAP/POP3 server built with Node.js and MongoDB", "description": "IMAP/POP3 server built with Node.js and MongoDB",
"main": "server.js", "main": "server.js",
"scripts": { "scripts": {