[Tickets #11983] Re: limit synced mailboxes by user preferences

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Jan 21 14:44:49 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11983
------------------------------------------------------------------------------
  Ticket             | 11983
  Updated By         | Michael Rubinsky <mrubinsk at horde.org>
  Summary            | limit synced mailboxes by user preferences
  Queue              | Synchronization
  Version            | Git master
  Type               | Enhancement
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


Michael Rubinsky <mrubinsk at horde.org> (2013-01-21 14:44) wrote:

> 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.






More information about the bugs mailing list