From bed2cacb4ad1e7369cb4d9e3480fc209b5e4ace6 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Sat, 1 Apr 2017 22:44:00 +0300 Subject: [PATCH] Fixed SEARCH ALL --- imap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imap.js b/imap.js index 02f6499e..949a33d7 100644 --- a/imap.js +++ b/imap.js @@ -1188,7 +1188,9 @@ server.onSearch = function (path, options, session, callback) { case 'all': if (!ne) { hasAll = true; - query = {}; + query = { + mailbox: mailbox._id + }; } break;