Skip to content

Commit

Permalink
restoring change lost in rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bapcltd-marv committed Jan 15, 2020
1 parent c0387e6 commit 5a18b51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PhpImap/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -1690,11 +1690,15 @@ protected function possiblyGetMailboxes($t)
foreach ($t as $item) {
// https://github.com/barbushin/php-imap/issues/339
$name = $this->decodeStringFromUtf7ImapToUtf8($item->name);
$name_pos = strpos($name, '}');
if (false === $name_pos) {
throw new UnexpectedValueException('Expected token "}" not found in subscription name!');
}
$arr[] = [
'fullpath' => $name,
'attributes' => $item->attributes,
'delimiter' => $item->delimiter,
'shortpath' => substr($name, strpos($name, '}') + 1),
'shortpath' => substr($name, $name_pos + 1),
];
}
}
Expand Down

0 comments on commit 5a18b51

Please sign in to comment.