IMAP Search
| From: | CodeHeads | Date: | Mon, 19 Jun 2006 22:00:27 +0000 |
| Subject: | IMAP Search | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-238329@lists.php.net to get a copy of this message | ||
Hello all,
I am having a problem trying to get the subject corenspond with the
message ID on a search.
here is my code so far:
echo "<h1>Search Results</h1>";
$WORDS = $_POST['words'];
$search1 = "BODY \"$WORDS\"";
$SEARCH = @imap_search($conn, $search1, SE_UID);
$arrData = $SEARCH;
$mailHeader = @imap_headerinfo($conn, $arrData);
if($SEARCH == FALSE) {
echo "<p>Sorry, did not find anything you were searching for</p>";
} else {
foreach ($arrData as $ID) {
echo "$ID - TOOK OUT THE HTML<br>\n";
}
}
This is the first for messing with IMAP! LOL
Thanks in advance,
Will
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc