6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/6/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
> >> 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. > > Well, getSpecialMailboxes() already caches the list so we only hit > the imap server once. > >> 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? > > Feel free to submit a patch and I'll review.
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