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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: elnar at azdata dot net
New email:
PHP Version: OS:

 

 [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 15:01:34 2024 UTC