6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/18/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 we do this, I think I'd do it as a INBOX and Special Folders only >> or all subscribed folders. >> [...] >> You can't use the prefs object inside the library code. This would >> have to be implemented inside Horde_Core_ActiveSync_Driver:: probably >> in _getMailFolders() or it's own filtering method. >> [...] >> Update the patch with the above changes and I'll look at adding it in >> Horde 5.1. > > 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. > > 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. > I've seen code to somewhat handle this in IMP - would the "proper" > way be to use the same code as IMP does, to determine which folder is > a special folder? I'll then have to dig through IMP to find out if > this is available to me within the ActiveSync context or if I'll have > to somehow duplicate it (yuck ;) ).
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