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",
"[EMAIL PROTECTED]", "***", 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