[Tickets #13212] Re: Other Users container not shown
noreply at bugs.horde.org
noreply at bugs.horde.org
Tue May 27 05:56:41 UTC 2014
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/13212
------------------------------------------------------------------------------
Ticket | 13212
Updated By | Michael Slusarz <slusarz at horde.org>
Summary | Other Users container not shown
Queue | IMP
Version | 6.2.0beta1
Type | Bug
-State | Unconfirmed
+State | Feedback
-Priority | 3. High
+Priority | 1. Low
Milestone |
Patch |
-Owners |
+Owners | Michael Slusarz
------------------------------------------------------------------------------
Michael Slusarz <slusarz at horde.org> (2014-05-26 23:56) wrote:
Pretty sure this was fixed. Specifically, this change (we were
stripping namespace prefix from all mailboxes, not just personal
namespaces):
--- a/imp/lib/Ftree/Account/Imap.php
+++ b/imp/lib/Ftree/Account/Imap.php
@@ -112,23 +112,23 @@ class IMP_Ftree_Account_Imap extends IMP_Ftree_Account
* step through the name to make sure all subfolders exist
* in the tree. */
if (strlen($val['delimiter'])) {
- /* Strip personal namespace. */
- if (!empty($ns_info['name']) &&
- (strpos($mbox, $ns_info['name']) === 0)) {
- $parts = explode($val['delimiter'], substr($mbox,
strlen($n
s_info['name'])));
- $parts[0] = $ns_info['name'] . $parts[0];
+ /* Strip personal namespace (if non-empty). */
+ if (($ns_info->type === $ns_info::NS_PERSONAL) &&
+ strlen($ns_info->name)) {
+ $parts = explode($val['delimiter'],
$ns_info->stripNamespac
e($mbox));
+ $parts[0] = $ns_info->name . $parts[0];
Obviously, this patch can't be applied directly since it depends on a
bunch of other changes (i.e. in Horde_Imap_Client) but I now see the
namespace prefix appearing in my Shared mailboxes folder.
More information about the bugs
mailing list