I have a testing email with the following Subject:
this's is a "TEST" of "quote's"
I'm trying to find the correct string to give the IMAP SEARCH call so that it will find that email. I am running into trouble because the syntax for a multi-word phrase is:
SEARCH SUBJECT "multi-word phrase"
However, the double-quote in the Subject string breaks that.
How should I escape the double-quotes in the sample subject so that the response is not empty?
My server is running Dovecot on CentOS 7, and my client is using PHP's imap calls.