$cChar = $sThreadResponse{$i};
switch ($cChar) {
case '(': // new sub thread
+ // correction for a subthread of a thread with no parents in thread
+ if (!count($aUidSubThread) && $j > 0) {
+ --$l;
+ }
$aDepthStack[$j] = $l;
++$j;
break;
* @return array $aMessageList associative array with messages. Key is the UID, value is an associative array
* @author Marc Groot Koerkamp
*/
-function parseFetch($aResponse,$aMessageList = array()) {
+function parseFetch(&$aResponse,$aMessageList = array()) {
for ($j=0,$iCnt=count($aResponse);$j<$iCnt;++$j) {
$aMsg = array();
$msgi = '';
}
$aMessageList[$msgi] = $aMsg;
+ $aResponse[$j] = NULL;
}
return $aMessageList;
}