imap4 search criterias

From: Date: Wed, 03 Dec 2008 07:52:09 +0000
Subject: imap4 search criterias
Groups: php.general 
Request: Send a blank email to php-general+get-284039@lists.php.net to get a copy of this message
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@cimtaspipe.com", "***", 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

« previous php.general (#284039) next »