php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11336 imap_sort function fails on huge mailboxes
Submitted: 2001-06-07 16:01 UTC Modified: 2001-06-08 14:12 UTC
From: elnar at azdata dot net Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.4 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
10 + 42 = ?
Subscribe to this entry?

 
 [2001-06-07 16:01 UTC] elnar at azdata dot net
<?php 
$mbox = imap_open ("{server:143}", "login", "password");

echo "<p><h1>Headers in INBOX</h1>\n";
$headers = imap_sort($mbox, 'SORTDATE', '0', SE_UID);;

if ($headers == false) {
    echo "Call failed<br>\n";
} else {
    while (list ($key,$val) = each ($headers)) {
        echo $val."<br>\n";
    }
}

imap_close($mbox);

?>

imap_sort function fails if mailbox is very huge(6000 messages) and nothing is returnd to browser so it shows "The page cannot be displayed" error!
Please let me know if any help or advices available.
Thanks.
Elnar C Hajiev.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-08 14:12 UTC] sniper@php.net
First update your IMAP libraries (to imap-2000 at least)
and also your PHP 4 to at least 4.0.5.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 14:01:33 2024 UTC