Mailbox update

This commit is contained in:
Torsten Schulz
2023-06-16 16:06:11 +02:00
parent c03662d301
commit 5600e5ba35

View File

@@ -7,8 +7,8 @@ class Emailinbox extends Renderer {
public function __construct(?string $templateName = null) { public function __construct(?string $templateName = null) {
parent::__construct(); parent::__construct();
$folder = utf8_encode(urldecode(filter_input(INPUT_GET, 'folder'))) ?? 'INBOX'; $this->folder = utf8_encode(urldecode(filter_input(INPUT_GET, 'folder'))) ?? 'INBOX';
if (!$this->connectToImap($folder)) { if (!$this->connectToImap($this->folder)) {
$this->templateName = 'imaperror'; $this->templateName = 'imaperror';
} }
} }
@@ -68,6 +68,7 @@ class Emailinbox extends Renderer {
} }
protected function generateFolders(): void { protected function generateFolders(): void {
var_dump($this->folder);
$this->connectToImap(); $this->connectToImap();
$folders = $this->mbox->getMailboxes("*"); $folders = $this->mbox->getMailboxes("*");
$folderItems = []; $folderItems = [];