imap4 search criterias

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

 



Hello,

I have a Fedora Core 9 system with php 5.2.5 and imap enabled.
A little program that uses imap_search results in this error. Does the
current php version support imap4 search criterias ?

Thanks for your help.

Here is the little program :
<?php
$mbox = imap_open("{192.6.10.1:143/service=imap}INBOX",
"ekoray@xxxxxxxxxxxxxx", "***", CL_EXPUNGE)
     or die("can't connect: " . imap_last_error());

$MC = imap_check($mbox);
$searchResults = imap_search($mbox, "SENTSINCE \"02 Dec 2008\"", SE_UID) ;
if(!empty($searchResults)) {
	echo "Not Empty<br/>" ;
	$concatResults = implode(",", $searchResults);
	// Fetch an overview for all messages in INBOX
$result = imap_fetch_overview($mbox,$concatResults, SE_NOPREFETCH+SE_UID);
foreach ($result as $overview) {
    echo "#{$overview->msgno} ({$overview->date}) - From: {$overview->from}
    {$overview->subject}<br />\n";
}
	
}
else
{
	echo "Empty " . imap_last_error() ;
}

imap_close($mbox);
?

Here is the result :

Unknown search criterion: SENTSINCE

-- 
Ergün Koray
bb, vm, mu, xg

-- 
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