6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/27/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11626] ActiveSync : auto detection of special folders (trash, sent, etc...) and hierarchy fails
*
Your Email Address
*
Spam protection
Enter the letters below:
.___. __ .__ . .. . | / `[__)|_/ \ / | \__.[__)| \ \/
Comment
> Ok, finally, I found a cleaner fix for the hierarchy problem. > > Juste replace line 1827 by : > > $parts = explode($f['d'], $sid); > > and forget the block > > if (!empty($fl["INBOX." . implode($f['d'], $parts)])) { > $folder->parentid = "INBOX." . implode($f['d'], $parts); > $folder->displayname = $displayname; > } > > Ryu > >> Ouch ! I forgot a change... >> >> I replaced the "split" function, line 1827 (which seems to return an >> empty array) by "explode". Futhermore, split is deprecated since php >> 5.3.0 >> >> Ryu >> >>> Ok, I think I have the solution... >>> >>> For the first problem => bad type for special folders >>> >>> in Horde Framework / Core/ActiveSync/Driver.php, ~ line 1862 : >>> replace mailbox property from "basename" to "value" for each special >>> folders. >>> >>> INBOX prefix was missing with basename... >>> >>> With this fix, types are ok in ActiveSync >>> >>> ============================================ >>> >>> Next, for the hierarchy problem. >>> Always the same file (Core/ActiveSync/Driver.php), just above, ~ line 1829 >>> >>> Add INBOX prefix >>> >>> if (!empty($fl["INBOX." . implode($f['d'], $parts)])) { >>> $folder->parentid = "INBOX." . implode($f['d'], $parts); >>> $folder->displayname = $displayname; >>> } >>> >>> ============================================ >>> >>> I don't know if it is the good fix... Maybe there is a cleaner >>> solution ! But this works... >>> >>> Ryu >> >
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