#23377 [NEW]: imap_thread has hard-coded search param

From: Date: Mon, 28 Apr 2003 05:01:08 +0000
Subject: #23377 [NEW]: imap_thread has hard-coded search param
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38527@lists.php.net to get a copy of this message
From: bill dot mccoy at pictureiq dot com Operating system: Linux, WinXP PHP version: 4.3.1 PHP Bug Type: IMAP related Bug description: imap_thread has hard-coded search param 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 bug report at http://bugs.php.net/?id=23377&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23377&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23377&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23377&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23377&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23377&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23377&r=support Expected behavior: http://bugs.php.net/fix.php?id=23377&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23377&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23377&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23377&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23377&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23377&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23377&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23377&r=gnused

« previous php.bugs (#38527) next »