This commit is contained in:
Andris Reinman 2018-02-20 11:00:21 +02:00
parent 3bc95d645b
commit 0b164d0b89
2 changed files with 6 additions and 6 deletions

View file

@ -416,19 +416,19 @@ class FilterHandler {
}, },
(err, autoreplyData) => { (err, autoreplyData) => {
if (err) { if (err) {
return callback(err); return done(err);
} }
if (!autoreplyData || !autoreplyData.status) { if (!autoreplyData || !autoreplyData.status) {
return callback(null, false); return done(null, false);
} }
if (autoreplyData.start && autoreplyData.start > curtime) { if (autoreplyData.start && autoreplyData.start > curtime) {
return callback(null, false); return done(null, false);
} }
if (autoreplyData.end && autoreplyData.end < curtime) { if (autoreplyData.end && autoreplyData.end < curtime) {
return callback(null, false); return done(null, false);
} }
autoreply( autoreply(

View file

@ -1,6 +1,6 @@
{ {
"name": "wildduck", "name": "wildduck",
"version": "1.0.115", "version": "1.0.116",
"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": {
@ -25,7 +25,7 @@
"icedfrisby": "^1.5.0", "icedfrisby": "^1.5.0",
"mailparser": "^2.2.0", "mailparser": "^2.2.0",
"markdown-toc": "^1.2.0", "markdown-toc": "^1.2.0",
"mocha": "^5.0.0", "mocha": "^5.0.1",
"request": "^2.83.0" "request": "^2.83.0"
}, },
"dependencies": { "dependencies": {