#23377 [Opn]: imap_thread has hard-coded search param
| From: | derick@php.net | Date: | Mon, 28 Apr 2003 06:19:46 +0000 |
| Subject: | #23377 [Opn]: imap_thread has hard-coded search param | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38528@lists.php.net to get a copy of this message | ||
ID: 23377
Updated by: derick@php.net
Reported By: bill dot mccoy at pictureiq dot com
Status: Open
-Bug Type: IMAP related
+Bug Type: Feature/Change Request
Operating System: Linux, WinXP
PHP Version: 4.3.1
New Comment:
Marking this as a feature request, as it's not really a bug (it was
intended this way).
Derick
Previous Comments:
------------------------------------------------------------------------
[2003-04-28 00:01:08] bill dot mccoy at pictureiq dot com
imap_thread's implementation in php_imap.c passes the hard-coded string
"ALL" to the underlying IMAP C Runtime Library. This renders the
function almost useless in situations where very large mailboxes
require filtering (e.g. with a "SINCE DATE" search string). And even if
imap_thread is only to support REFERENCE threading, the IMAP extension
spec explicitly defines that the THREAD is performed on the results of
the contained SEARCH. So in some sense failing to enable this means
imap_thread can't be used in compliance with the spec. It is also
inconsistent with imap_sort. Making 'criteria' a param for imap_thread
as with imap_search & imap_sort would be (it seems to me) a tiny change
with good bang for the buck. For compatibility I guess making it an
optional 3rd param would be desirable.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23377&edit=1