* 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:43 +00:00
parent 95d9dc084f
commit 472f262eb1

View File

@ -1190,7 +1190,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'];