PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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.