From 1a3e9ae0ff17782a1897622fcc9cab33df410a28 Mon Sep 17 00:00:00 2001 From: Torsten Schulz Date: Mon, 3 Jul 2023 11:50:35 +0200 Subject: [PATCH] rebuild folder structure list --- include/emailinbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/emailinbox.php b/include/emailinbox.php index e55f35e..571108a 100644 --- a/include/emailinbox.php +++ b/include/emailinbox.php @@ -16,7 +16,7 @@ class Emailinbox extends Renderer { protected function readEmailHeaders(): array { $cleanedHeaders = []; try { - $folders = $this->mbox->getListingFolders(); + $mailsIds = $this->mbox->searchMailbox('ALL'); } catch(PhpImap\Exceptions\ConnectionException $ex) { echo "IMAP connection failed: " . implode(",", $ex->getErrors('all')); die();