6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/7/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
>> I've move the code to >> Horde_Core_ActiveSync_Driver::_getMailFolders(), which works as >> expected (at the current stage of development). But two questions >> remain: >> >> Isn't "Horde_Core_ActiveSync_Driver::_getMailFolders()" part of "the >> library code" as well? For both places I've implemented this so far, >> accessing the preferences worked as expected, probably because the >> routines were called in the context of a logged-in user. If this may >> cause problems for other types of invocation (without user context), >> I'd need some architectural guidance. > > 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. > >> Secondly, is there a proper way to detect which folders returned by >> "_imap->getMailboxes()" are "special" mailboxes? I believe that even >> if I set preference to only see "INBOX", I'd need at least "Trash" >> and "Sent" as well, and probably "Drafts" (and "Templates"?) too. >> I've seen no specific attributes for these folders and remember that >> some clients I used were able to select which folder to use for these >> functions. > > This is already done in > Horde_Core_ActiveSync_Driver::_getMailFolder(). You just need to > check the type property of the returned folder object. >
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