Mailbox update

This commit is contained in:
Torsten Schulz
2023-06-16 16:04:01 +02:00
parent 0d98bba5d1
commit 91111e92a6

View File

@@ -71,10 +71,8 @@ class Emailinbox extends Renderer {
$this->connectToImap();
$folders = $this->mbox->getMailboxes("*");
$folderItems = [];
var_dump($this->folder);
foreach ($folders as $folder) {
var_dump($folder['shortpath'], $this->folder === $folder['shortpath']);
$item = '<li><a href="/emailinbox?folder=' . urlencode($folder['shortpath']) . '"' . ($folder['shortpath'] === $this->folder ? ' style="active-folder"' : '') . '>' . utf8_encode($folder['shortpath']) . '</a></li>';
$item = '<li><a href="/emailinbox?folder=' . urlencode($folder['shortpath']) . '"' . ($folder['shortpath'] === $this->folder ? ' class="active-folder"' : '') . '>' . utf8_encode($folder['shortpath']) . '</a></li>';
$folderItems[] = $item;
}
$this->content['folders'] = implode('', $folderItems);