mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-31 04:33:09 +08:00
Fixed SEARCH for UN/SEEN + UN/DELETED
This commit is contained in:
parent
ba3e111ed2
commit
169465d6ae
1 changed files with 10 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue