Home » Mail » Mail_Mbox » Bug #977
$mbox->size() returns 1 for empty mailbox.
Details
| Submitted | 2004-03-09 06:02 UTC |
|---|---|
| From | brett at realestate-school dot com |
| Assigned | darkelder |
| Status | Closed |
| Package | Mail_Mbox |
| PHP Version | 4.3.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-03-09 06:02 UTC] brett at realestate-school dot com
Description:
------------
When parsing a mailbox file on Linux, Mbox always returns 1 for the size, even when there are 0 messages.
Reproduce code:
---------------
$mid = $mbox->open("inbox");
echo "Mbox Size is: ".$mbox->size($mid);
Expected result:
----------------
should return 0 when the inbox file is empty, but does not.