Does the imap_search support multiple criteria?
I've got the following successfully returning the correct results:
<?php
$search[0] = "BODY \"test\"";
$search[1] = "SUBJECT \"test\"";
foreach ($search as $criteria) {
$search_result[]=$imap_search($mailbox,$criteria,$SE_UID);
}
?>
However, when you try and put them in the same search
e.g. $search = "BODY \"test\" OR SUBJECT \"test\""
It fails...
The only way in which I can see this can be done is by joining the various
arrays that are returned. Is this best?
Thanks
Nunners