Skip to content

Commit

Permalink
Merge pull request #206 from underdpt/fix-getmailboxes
Browse files Browse the repository at this point in the history
Fix incorrect shortpath on mailboxes outside INBOX
  • Loading branch information
barbushin committed Nov 9, 2017
2 parents 0574073 + 78e17ff commit e3333d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpImap/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ public function getMailboxes($search = "*") {
"fullpath" => $item->name,
"attributes" => $item->attributes,
"delimiter" => $item->delimiter,
"shortpath" => substr($item->name, strlen($this->imapPath) - strlen("INBOX")),
"shortpath" => substr($item->name, strpos($item->name, '}') + 1),
];
}
}
Expand Down

0 comments on commit e3333d9

Please sign in to comment.