I search in my IMAP folder Archive/2016 for the term "foo". There are several messages containing this word, but the search (ctrl-shift-f) tells me that there are not messages with this word in the body.
I use "search on server".
This looks like the IMAP server does return the wrong results.
How can I debug this?
Is there a way in thunderbird that I can see the IMAP commands that get send to the server and the responses which I get?
Since the communication is encrypted wireshark does not help :-(