mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
fix IMAP folders
This commit is contained in:
@@ -110,7 +110,7 @@ class Fetcher
|
||||
$folder = mb_convert_encoding($folderOriginal, 'UTF7-IMAP', 'UTF-8');
|
||||
|
||||
try {
|
||||
$storage->selectFolder($folder);
|
||||
$storage->selectFolder($folderOriginal);
|
||||
} catch (Throwable $e) {
|
||||
$message = "{$account->getEntityType()} {$account->getId()}, " .
|
||||
"could not select folder '$folder'; {$e->getMessage()}";
|
||||
|
||||
@@ -244,7 +244,7 @@ class DirectoryTreeStorage implements Storage
|
||||
$folders = $this->mailbox->folders()->get();
|
||||
|
||||
foreach ($folders as $folder) {
|
||||
$output[] = $folder->path();
|
||||
$output[] = mb_convert_encoding($folder->path(), 'UTF-8', 'UTF7-IMAP');
|
||||
}
|
||||
} catch (CommonException $e) {
|
||||
throw new ImapError($e->getMessage(), previous: $e);
|
||||
|
||||
Reference in New Issue
Block a user