Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,13 @@ public function status(string $folder = null)
* This function returns an object containing listing the folders.
* The object has the following properties:
* messages, recent, unseen, uidnext, and uidvalidity.
*
* @param string $rootFolder get folder structure for given folder, else root
* @param bool $subscribedOnly get only subscribed folders or all folders
* @return RecursiveIteratorIterator
*/
public function getFolders(string $rootFolder = null)
public function getFolders(string $rootFolder = null, $subscribedOnly = false)
{
$folders = $this->getImapStream()->getFolders($rootFolder);
$folders = $this->getImapStream()->getFolders($rootFolder, $subscribedOnly);

if (! $folders) {
return [];
Expand Down