Bug #15238 Updated: imap_search() does not support search criteria SENTSINCE

From: Date: Sun, 27 Jan 2002 04:05:35 +0000
Subject: Bug #15238 Updated: imap_search() does not support search criteria SENTSINCE
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78206@lists.php.net to get a copy of this message
ID: 15238 User updated by: oliver@samera.com.py Reported By: oliver@samera.com.py Status: Open Bug Type: IMAP related Operating System: RedHat Linux 7.2 PHP Version: 4.0.6 New Comment: It seems that the problem is in: php_imap.c line 3446 in the PHP_FUNCTION(imap_search). Here is a call for mail_criteria() that does no support IMAP4 search queries. mail_criteria() only support IMAP2 queries and SENTSINCE and SENTBEFORE are only IMAP4 keywords. I'm looking at washington.edu/imap for an example on how to use search in IMAP4. Anyone know something about this? Thanks Previous Comments: ------------------------------------------------------------------------ [2002-01-26 21:01:17] oliver@samera.com.py The funcion imap_search() return false if you use the keyword SENTSINCE or SENTBEFORE. Example: - this return false imap_search($mbox, 'SENTSINCE 01-Jan-2001'); - this works imap_search($mbox, 'SINCE 01-Jan-2001'); The keyword is supported by wu-imapd 2000c. I try doing a 'telnet localhost imap' and entered the commands manually and the keyword works. Also Netscape 6.2.1 us SENTSINCE and SENTBEFORE instead of SINCE and BEFORE. I tested this in RedHat 7.1 and 7.2 with PHP 4.0.4pl1 and PHP 4.0.6 Also, if you use the SENTSINCE keyword, nothig is sended to the imap server. I use tcpdump to debug. Only if you use SINCE, the query is sended to the imap server. Chech RFC 2060 Section 6.4.4. : http://www.isi.edu/in-notes/rfc2060.txt ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15238&edit=1

« previous php.dev (#78206) next »