Mailbox update

This commit is contained in:
Torsten Schulz
2023-06-16 13:35:27 +02:00
parent d7c3d04409
commit da84b72c3d
2 changed files with 8 additions and 1 deletions

View File

@@ -63,6 +63,11 @@ class Emailinbox extends Renderer {
protected function generateFolders(): void {
$folders = $this->mbox->getMailboxes("*");
var_dump($folders);
$folderItems = [];
foreach ($folders as $folder) {
$folderItems[] = '<li><a href=/emailinbox?folder=' . urlencode($folder['shortpath']) . '</a>' . $folder['shortpath'] . '</li>';
}
$this->content['folders'] = implode('</li><li>', $folderItems);
// var_dump($folders);
}
}