diff --git a/include/emailinbox.php b/include/emailinbox.php index f81193f..c6b55d8 100644 --- a/include/emailinbox.php +++ b/include/emailinbox.php @@ -62,7 +62,7 @@ class Emailinbox extends Renderer { } protected function generateFolders(): void { - $folders = $this->mbox->getMailboxes("*"); + $folders = $this->mbox->getMailboxes("INBOX/*"); var_dump($folders); } } diff --git a/include/renderer.php b/include/renderer.php index c3031c3..909b4df 100644 --- a/include/renderer.php +++ b/include/renderer.php @@ -453,7 +453,7 @@ class Renderer { protected function connectToImap(): bool { $this->mbox = new PhpImap\Mailbox( - '{' . $this->imapServer . ':' . $this->imapPort . '/imap/ssl}INBOX', + '{' . $this->imapServer . ':' . $this->imapPort . '/imap/ssl}', $this->emailUser, $this->emailPassword, __DIR__,