|
@@ 1128-1131 (lines=4) @@
|
| 1125 |
|
{ |
| 1126 |
|
$retval = true; |
| 1127 |
|
if($folderToSelect && ($folderStatus = $this->getFolderStatus($folderToSelect,false,true))) { |
| 1128 |
|
if (!empty($folderStatus['attributes']) && stripos(array2string($folderStatus['attributes']),'noselect')!==false) |
| 1129 |
|
{ |
| 1130 |
|
$retval = false; |
| 1131 |
|
} |
| 1132 |
|
} |
| 1133 |
|
return $retval; |
| 1134 |
|
} |
|
@@ 1276-1279 (lines=4) @@
|
| 1273 |
|
} |
| 1274 |
|
if ($folderInfo) $folderBasicInfo[$this->profileID][$_folderName]=$retValue; |
| 1275 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.' '.$_folderName.array2string($retValue['attributes'])); |
| 1276 |
|
if ($basicInfoOnly || (isset($retValue['attributes']) && stripos(array2string($retValue['attributes']),'noselect')!==false)) |
| 1277 |
|
{ |
| 1278 |
|
return $retValue; |
| 1279 |
|
} |
| 1280 |
|
// fetch all in one go for one request, instead of querying them one by one |
| 1281 |
|
// cache it for a minute 60*60*1 |
| 1282 |
|
// this should reduce communication to the imap server |