Skip to content

Commit

Permalink
Account for inbox
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed May 30, 2014
1 parent bca409f commit c0cc83e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imp/lib/Ftree/Account/Imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ public function getList($query = null)
if ($ns_info && strlen($ns_info->delimiter)) {
/* Strip personal namespace (if non-empty). */
if ($ns_info->type === $ns_info::NS_PERSONAL) {
$parts = explode($ns_info->delimiter, $ns_info->stripNamespace($mbox));
if (count($parts) > 1) {
$stripped = $ns_info->stripNamespace($mbox);
$parts = explode($ns_info->delimiter, $stripped);
if ($stripped != $mbox) {
$parts[0] = $ns_info->name . $parts[0];
}
} else {
Expand Down

0 comments on commit c0cc83e

Please sign in to comment.