6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/18/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9102] Dovecot folders subscription
*
Your Email Address
*
Spam protection
Enter the letters below:
..__ .___. __ \ / |[__) _/ / ` >< \__|| \./__.\__./ \
Comment
> Dovecot by default doesn't use subscription for INBOX (at least in my > mailserver) and this produces a error in IMAP Tree Folders... Looking > at the source code I could find an error when the INBOX is > unsubscribed... > > protected function _getList($showunsub) in imp/lib/Imap/Tree.php... > This function tests if result list doesn't contain INBOX and FORCE an > array to increment INBOX, however, this function use array_merge and > it produces an error when some folder has a numeric name (in my case > my folder is: 2009 or 2010)... > > Looking at PHP documentation I saw > (http://php.net/manual/en/function.array-merge.php): > If all of the arrays contain only numeric keys, the resulting array > is given incrementing keys starting from zero. > If you want to append array elements from the second array to the > first array while not overwriting the elements from the first array > and not re-indexing, use the + array union operator: > <?php > $array1 = array(0 => 'zero_a', 2 => 'two_a', 3 => 'three_a'); > $array2 = array(1 => 'one_b', 3 => 'three_b', 4 => 'four_b'); > $result = $array1 + $array2; > var_dump($result); > ?>
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers