php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40865 imap_fetch_overview ignores sequence-order
Submitted: 2007-03-20 13:33 UTC Modified: 2007-03-20 15:45 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: xhack at web dot de Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 5.2.1 OS: Debian Linux Etch 4.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: xhack at web dot de
New email:
PHP Version: OS:

 

 [2007-03-20 13:33 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-20 13:44 UTC] tony2001@php.net
PHP just passes this string to c-client, the processing is done there.
 [2007-03-20 13:53 UTC] xhack at web dot de
the processing is quite excellent, but the function always sorts the sequence-field (asc) - and it shouldn't.
 [2007-03-20 14:00 UTC] tony2001@php.net
PHP doesn't do any sorting either, c-client does.
 [2007-03-20 14:16 UTC] xhack at web dot de
so i can close this bug i think.
is this error c-client the libc6?
 [2007-03-20 15:45 UTC] tony2001@php.net
>so i can close this bug i think.
It's already closed.

>is this error c-client the libc6
http://www.washington.edu/imap/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC