* eMail/egw-pear: fixed problem with unexpected (but valid) multiline response for STATUS commands

This commit is contained in:
Klaus Leithoff 2013-03-04 08:03:52 +00:00
parent e8961f6fd4
commit f50768ec0b

View File

@ -1147,7 +1147,7 @@ class Net_IMAPProtocol {
if (!PEAR::isError($ret) && isset($ret['PARSED'])) {
foreach ($ret['PARSED'] as &$parsed)
{
if (!empty($parsed['EXT']))
if (!empty($parsed['EXT']) && $parsed['COMMAND']=='STATUS')
{
if(empty($ret['RESPONSE']['CODE'])) $ret['RESPONSE']['CODE'] ='OK';
$ret['PARSED'] = $parsed['EXT'];