#40865 [Opn->Bgs]: imap_fetch_overview ignores sequence-order
| From: | tony2001@php.net | Date: | Tue, 20 Mar 2007 13:44:59 +0000 |
| Subject: | #40865 [Opn->Bgs]: imap_fetch_overview ignores sequence-order | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110558@lists.php.net to get a copy of this message | ||
ID: 40865
Updated by: tony2001@php.net
Reported By: xhack at web dot de
-Status: Open
+Status: Bogus
Bug Type: IMAP related
Operating System: Debian Linux Etch 4.0
PHP Version: 5.2.1
New Comment:
PHP just passes this string to c-client, the processing is done there.
Previous Comments:
------------------------------------------------------------------------
[2007-03-20 13:33:18] xhack at web dot de
Description:
------------
imap_fetch_overview() ignores the order of integers in the
sequence-field. this is annoying when you try to sort mails
and then fetch a sorted list.
Reproduce code:
---------------
$res=imap_fetch_overview($mbox,"1,2,3,10",0);
OR
$res=imap_fetch_overview($mbox,"10,3,1,2",0);
OR SO ON ...
Expected result:
----------------
$res[0]->msgno=10
$res[1]->msgno=3
$res[2]->msgno=1
$res[3]->msgno=2
Actual result:
--------------
$res[0]->msgno=1
$res[1]->msgno=2
$res[2]->msgno=3
$res[3]->msgno=10
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40865&edit=1