Mailbox update

This commit is contained in:
Torsten Schulz
2023-06-16 16:00:50 +02:00
parent 0eb279d841
commit d95f37e91d
2 changed files with 5 additions and 1 deletions

View File

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