Open anshulCoder opened 6 years ago
No, the criteria/operand goes first, so it would be something like:
[
[ 'OR',
['FROM', 'Pinterest'],
['!SUBJECT', 'Sorry. We had to delete one of your Pins on Pinterest.']
]
]
assuming you want either of those two to be true.
Criteria 'OR' is optional for me the main issue is with the negation sign '!' negation is not only working, giving same result with or without it
Hi, I was trying a simple search in mails inbox folder here is my code so far:
imap.search([ ['FROM', 'Pinterest'], 'OR', ['!SUBJECT', 'Sorry. We had to delete one of your Pins on Pinterest.'] ], (err, ids) => {
Here even after putting a ! sign to negate the condition it was giving a same result like true condition, is the above code correct?