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 » Networking » Net_IMAP » Bug #1568

Probleme in function cmdStatus

Details

Submitted2004-06-07 09:06 UTC
Fromdboukari at sqli dot com
Assigneddamian
StatusClosed
PackageNet_IMAP
PHP Version4.3.4
OSRed Hat 9
Roadmaps(Not assigned)

Comments

[2004-06-07 09:06 UTC] dboukari at sqli dot com

Description:
------------
My Env : Red Hat 9,Sendmail and i use "imap-2001a-18".

In function Net_IMAPProtocol::cmdStatus($mailbox, $request) (file "imapprotocol.php")

Line : $ret['PARSED']=$ret["PARSED"][0]["EXT"];

Must be change in :
$ret['PARSED']=$ret["PARSED"][count($ret['PARSED'])-1]["EXT"];

Because the line :
$ret = $this->_genericCommand('STATUS', "$mailbox_name ($request)" );
return an array of this type:
array[
RESPONSE[CODE=>,STR_CODE=>,CMDID=>],
PARSED[[0]=>,[1]=>,...,[n]=>]
]

That's all. Thank