mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-11-10 08:21:05 +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) {
|
switch (term.value) {
|
||||||
case '\\Seen':
|
case '\\Seen':
|
||||||
case '\\Deleted':
|
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 '\\Flagged':
|
||||||
case '\\Draft':
|
case '\\Draft':
|
||||||
if (term.exists) {
|
if (term.exists) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue