PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail_Mbox » Bug #977

$mbox->size() returns 1 for empty mailbox.

Details

Submitted2004-03-09 06:02 UTC
Frombrett at realestate-school dot com
Assigneddarkelder
StatusClosed
PackageMail_Mbox
PHP Version4.3.4
OSLinux
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.