method selectFolder documentation in bbn\Appui\Mailbox

Reopens the desired mailbox (you can give it the simple name or the full name). (Test: ok)

If the given name is not existing it opens the default inbox.

function(string $folder = NULL) { if ($this->_is_connected()) { if (!$folder || ($this->folder === $folder)) { return $folder ?: $this->folder; } if (\in_array($folder, $this->getAllNamesFolders())) { $res = imap_reopen($this->stream, $this->mbParam . $folder); } else { $res = imap_reopen($this->stream, $folder); } if ($res) { if (!isset($this->folders[$folder])) { $this->folders[$folder] = [ 'last_uid' => null, 'num_msg' => null, 'last_check' => null ]; } $this->folder = $folder; return $folder; } } return null; }

Reopens the desired mailbox (you can give it the simple name or the full name). (Test: ok) 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.