Skip to content

Commit

Permalink
Fix regression in stripping namespace from mailbox
Browse files Browse the repository at this point in the history
introduced in f5b7ef2.
  • Loading branch information
mrubinsk committed Mar 2, 2014
1 parent 8f25d64 commit 96218c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imp/lib/Mailbox.php
Expand Up @@ -1436,7 +1436,7 @@ static public function prefTo($mbox)

if ($ns['name'] == $def_ns['name']) {
/* From personal namespace => strip namespace. */
$ret = substr($ret, strlen($def_ns['name']));
$ret = substr(strval($mbox), strlen($def_ns['name']));
} else {
$empty_ns = $imp_imap->getNamespace('');
if ($ns['name'] == $empty_ns['name']) {
Expand Down

0 comments on commit 96218c6

Please sign in to comment.