Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 6, 2014
1 parent cfc40c9 commit ce72593
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions framework/Imap_Client/lib/Horde/Imap/Client/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -2591,8 +2591,6 @@ protected function _fetch(Horde_Imap_Client_Fetch_Results $results,
$sequence = $options['ids']->sequence;
}

$followup = array();

try {
$resp = $this->_sendCmd($pipeline);

Expand All @@ -2604,8 +2602,6 @@ protected function _fetch(Horde_Imap_Client_Fetch_Results $results,
foreach ($resp->fetch as $k => $v) {
$results->get($sequence ? $k : $v->getUid())->merge($v);
}

$followup = array_merge($followup, $pipeline->data['fetch_followup']);
} catch (Horde_Imap_Client_Exception_ServerResponse $e) {
// A NO response, when coupled with a sequence FETCH, most
// likely means that messages were expunged. RFC 2180 [4.1]
Expand All @@ -2619,8 +2615,8 @@ protected function _fetch(Horde_Imap_Client_Fetch_Results $results,
// given message.
}

if (!empty($followup)) {
$this->_fetch($results, $followup);
if (!empty($pipeline->data['fetch_followup'])) {
$this->_fetch($results, $pipeline->data['fetch_followup']);
}
}

Expand Down

0 comments on commit ce72593

Please sign in to comment.