I'm trying to do a search on a Gmail account through IMAP, using imap_search
to filter the to and from email addresses and I'm getting back syntax errors. Can anyone advise on what's wrong with this, or of any good documentation to assist me?
FROM "address@example1.co.uk" OR TO "address@example1.co.uk" OR FROM "address@example2.co.uk" OR TO "address@example2.co.uk"
( OR (FROM "address@example1.co.uk") (TO "address@example1.co.uk") (FROM "address@example2.co.uk") (TO "address@example2.co.uk"))
I have tried both of the above example, both resulting in the error below
Messages not found. Or this criteria not supported on your email server.