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