6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
11/27/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#11983] limit synced mailboxes by user preferences
*
Your Email Address
*
Spam protection
Enter the letters below:
__ .__.. .. . . / `| |\ /| | | \__.|__\ \/ |___|/\|
Comment
>>> Isn't "Horde_Core_ActiveSync_Driver::_getMailFolders()" part of "the >>> library code" as well? [...] >> The framework libraries are designed to be used as stand alone >> libraries - outside of a Horde environment. Core is a special library >> that contains the core libraries needed for a Horde environment. > > Thanks, that explains it! > >>> Secondly, is there a proper way to detect which folders returned by >>> "_imap->getMailboxes()" are "special" mailboxes? [...] >> This is already done in >> Horde_Core_ActiveSync_Driver::_getMailFolder(). You just need to >> check the type property of the returned folder object. > > If I had to call _getMailFolder() for every folder returned by > _imap->getMailboxes(), wouldn't this get too expensive? My list may > well be longer than 1k entries... each tme creating an instance of > Horde_ActiveSync_Message_Folder, calling getSpecialMailboxes() etc, > and then dumping the result in all but a handful of cases. > > Purely functionally speaking, the quickest approach would be to call > _imap->getSpecialMailboxes() only once, re-map to an "folder > name"-based array, then check every "_imap->getMailboxes()" result > against that new array. Does that sound acceptable to you?
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