Wrap "AND" search expressions within ()'s if they are within OR or NOT expressions
Make sure the ImapFolder is open in READ-WRITE mode in some cases
Check for the QRESYNC IMAP extension
Merge remote-tracking branch 'upstream/master'