Fixed SEARCH for UN/SEEN + UN/DELETED

This commit is contained in:
Andris Reinman 2017-07-18 18:16:13 +03:00
parent ba3e111ed2
commit 169465d6ae

View file

@ -116,6 +116,16 @@ module.exports = server => (path, options, session, callback) => {
switch (term.value) {
case '\\Seen':
case '\\Deleted':
if (term.exists) {
parent.push({
['un' + term.value.toLowerCase().substr(1)]: ne
});
} else {
parent.push({
['un' + term.value.toLowerCase().substr(1)]: !ne
});
}
break;
case '\\Flagged':
case '\\Draft':
if (term.exists) {