IMAP Search

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux