method checkFolder documentation in bbn\User\Email

function(array $folder, $sync = false) { if (X::hasProp($folder, 'uid') && ($mb = $this->getMailbox($folder['id_account'])) && $mb->check() ) { if ($mb->update($folder['uid']) && ($folders = $mb->getFolders()) && ($res = $folders[$folder['uid']]) && ($info = $mb->getInfoFolder($folder['uid'])) ) { if (!array_key_exists('db_uid', $res)) { $res['db_uid'] = null; } if (($res['num_msg'] && !$folder['last_uid']) || ($folder['last_uid'] !== $res['db_uid']) || ($res['num_msg'] !== $info->Nmsgs)) { $id_account = $folder['id_account']; unset($folder['id_account']); $res = array_merge($folder, $res); $this->pref->updateBit($folder['id'], $res, true); $res['id_account'] = $id_account; $this->getAccount($id_account, true); if ($sync) { $this->syncEmails($res); } } return $res; } } return null; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.