<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>limit synced mailboxes by user preferences</title> 
  <pubDate>Fri, 10 Apr 2026 18:27:13 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11983</link> 
  <atom:link rel="self" type="application/rss+xml" title="limit synced mailboxes by user preferences" href="https://bugs.horde.org/ticket/11983/rss" /> 
  <description>limit synced mailboxes by user preferences</description> 
 
   
   
  <item> 
   <title>I have a fairly large mailbox structure, plus access to vari</title> 
   <description>I have a fairly large mailbox structure, plus access to various shared folders. When I synchronize with a remote device, I therefore generate tons of traffic and load, especially on the &quot;small&quot; remote device. On the other hand, my remote device won&#039;t let me access folders not under my INBOX at all, and I definitely don&#039;t need all the sub-folders as available through the web interface.

As I have been unsuccessful to create a second IMAP user with access to the same INBOX, but only few of the folders below, I have created a patch to ActiveSync that allows a user to (currently) select
- only to sync folders below and including the INBOX
- limit the nesting level of the folders synced

The according preferences are settable via the standard preferences dialog, per user.

A future enhancement may be to explicitly select folders to include/exclude during email sync.

I&#039;ve attached two files:
- the definitions for the user preferences - currently added as $webdir/config/prefs.d/30-activesync.php
- the new method Horde_ActiveSync_Imap_Adapter::getMailboxes() from /usr/share/php5/PEAR/Horde/ActiveSync/Imap/Adapter.php

I hope this change finds your approval.

Regards,
Jens</description> 
   <pubDate>Sun, 20 Jan 2013 16:09:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76313</link> 
  </item> 
   
  <item> 
   <title>&gt; I have a fairly large mailbox structure, plus access to va</title> 
   <description>&gt; I have a fairly large mailbox structure, plus access to various 
&gt; shared folders. When I synchronize with a remote device, I therefore 
&gt; generate tons of traffic and load, especially on the &quot;small&quot; remote 
&gt; device.

Currently, it sends all &quot;subscribed&quot; folders in the FOLDERSYNC request. The rationale is that if you have subscribed to the folder, you are interested enough in it to want to see it on the device.

Note that sending the folder via FOLDERSYNC does not necessarily mean it pushes that folder, just that it is available on the device for viewing. On most of the clients I test, the email is lazy loaded into folders other than the INBOX - it only polls the server when you view the folder. Some devices will THEN push to that folder for some time after it is loaded. Other clients have settings that allow you to pick and choose the folders you want pushed vs just available.

&gt; On the other hand, my remote device won&#039;t let me access 
&gt; folders not under my INBOX at all, and I definitely don&#039;t need all 
&gt; the sub-folders as available through the web interface.

Curious as to what client this is. I&#039;ve never seen a client limit folders to those only under INBOX.

&gt; As I have been unsuccessful to create a second IMAP user with access 
&gt; to the same INBOX, but only few of the folders below, I have created 
&gt; a patch to ActiveSync that allows a user to (currently) select
&gt; - only to sync folders below and including the INBOX
&gt; - limit the nesting level of the folders synced

This of course will only work for IMAP servers that are structured/configured in this way. My server does not place folders under INBOX at all. I have a few hundred mailboxes (of course not all subscribed) and most are at the same level as the INBOX.

&gt; The according preferences are settable via the standard preferences 
&gt; dialog, per user.
&gt;
&gt; A future enhancement may be to explicitly select folders to 
&gt; include/exclude during email sync.

I&#039;d rather not go that route. I feel that this is a client responsibility. Also, filtering the folders that are returned via FOLDERSYNC responses could screw up search results
</description> 
   <pubDate>Sun, 20 Jan 2013 19:35:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76314</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I have a fairly large mailbox structure, plus access to v</title> 
   <description>&gt;&gt; I have a fairly large mailbox structure, plus access to various
&gt;&gt; shared folders. When I synchronize with a remote device, I therefore
&gt;&gt; generate tons of traffic and load, especially on the &quot;small&quot; remote
&gt;&gt; device.
&gt;
&gt; Currently, it sends all &quot;subscribed&quot; folders in the FOLDERSYNC 
&gt; request. The rationale is that if you have subscribed to the folder, 
&gt; you are interested enough in it to want to see it on the device.

When on the road, I usually only need to see if I have new mail and optionally reply to it. Some other folders will be required, too, like &quot;Sent&quot; and &quot;Trash&quot;.

&gt; Note that sending the folder via FOLDERSYNC does not necessarily mean 
&gt; it pushes that folder, just that it is available on the device for 
&gt; viewing. On most of the clients I test, the email is lazy loaded into 
&gt; folders other than the INBOX - it only polls the server when you view 
&gt; the folder. Some devices will THEN push to that folder for some time 
&gt; after it is loaded. Other clients have settings that allow you to 
&gt; pick and choose the folders you want pushed vs just available.

It&#039;s my observation too that only messages in the INBOX are actually pushed to the remote device. But with about 1083 folders (number increasing), already processing the list of available folders causes a significant slow-down on my remote...

&gt;&gt; On the other hand, my remote device won&#039;t let me access
&gt;&gt; folders not under my INBOX at all, and I definitely don&#039;t need all
&gt;&gt; the sub-folders as available through the web interface.
&gt;
&gt; Curious as to what client this is. I&#039;ve never seen a client limit 
&gt; folders to those only under INBOX.

It&#039;s the default client on WebOS 2.x (HP Pre3).

&gt;&gt; As I have been unsuccessful to create a second IMAP user with access
&gt;&gt; to the same INBOX, but only few of the folders below, I have created
&gt;&gt; a patch to ActiveSync that allows a user to (currently) select
&gt;&gt; - only to sync folders below and including the INBOX
&gt;&gt; - limit the nesting level of the folders synced
&gt;
&gt; This of course will only work for IMAP servers that are 
&gt; structured/configured in this way. My server does not place folders 
&gt; under INBOX at all. I have a few hundred mailboxes (of course not all 
&gt; subscribed) and most are at the same level as the INBOX.

Yes, I had anticipated that situation - being able to select which folders to sync, similar to selecting which calendars and address books to sync, would cover that.

&gt;&gt; The according preferences are settable via the standard preferences
&gt;&gt; dialog, per user.
&gt;&gt;
&gt;&gt; A future enhancement may be to explicitly select folders to
&gt;&gt; include/exclude during email sync.
&gt;
&gt; I&#039;d rather not go that route. I feel that this is a client 
&gt; responsibility. Also, filtering the folders that are returned via 
&gt; FOLDERSYNC responses could screw up search results

I fully agree to that position, and as I mentioned above, even I would have preferred to go a different route... a sufficient solution would have been if I could have used IMAP subscriptions and a second account - that would have been a favorable solution. But unfortunately I couldn&#039;t get that to work, probably to my insufficient knowledge of the details of the Cyrus IMAP server.

That&#039;s when I thought that a client-side subscription model, implemented on the ActiveSync part (rather than the final mobile client) ought to help... and the long time it seems to take to process the results of a folder sync, I decided to code a filter option for that call. But of course, there may be (and your reply says there *are*) side effects I couldn&#039;t foresee.

Do you see a different, better place to implement such a filter? I&#039;d be willing to give this another try.

BTW: After running this filter on my server/account, processing time and data transfer volume have already decreased. But I see many instances of supposedly &quot;filtered&quot; folders in the ActiveSync debug log, there still is much work left to actually reduce the handling to only those folders I actually want to see on the remote :/</description> 
   <pubDate>Sun, 20 Jan 2013 21:12:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76315</link> 
  </item> 
   
  <item> 
   <title>Ha - seems you&#039;re right again:

&gt;&gt; On the other hand, my r</title> 
   <description>Ha - seems you&#039;re right again:

&gt;&gt; On the other hand, my remote device won&#039;t let me access
&gt;&gt; folders not under my INBOX at all, and I definitely don&#039;t need all
&gt;&gt; the sub-folders as available through the web interface.
&gt;
&gt; Curious as to what client this is. I&#039;ve never seen a client limit 
&gt; folders to those only under INBOX.

I just noticed that during a development error, I actually had some &quot;not under INBOX&quot; folders in the list - and my WebOS client would show them. It must have been more of a problem of handling the large number of folders, the displayed list is rather bad to handle and either the &quot;shared folders&quot; where at the cut off at end of the list or lost somewhere in the too long (scrollable) list of folders.

That list handling (within the WebOS mail client) is a PITA when having many folders - reason enough to limit the list of displayed folders. I couldn&#039;t find an option for this within that client, so I&#039;m still after the ActiveSync filtering solution ;)</description> 
   <pubDate>Sun, 20 Jan 2013 21:28:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76316</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Note that sending the folder via FOLDERSYNC does not nece</title> 
   <description>&gt;&gt; Note that sending the folder via FOLDERSYNC does not necessarily mean
&gt;&gt; it pushes that folder, just that it is available on the device for
&gt;&gt; viewing. On most of the clients I test, the email is lazy loaded into
&gt;&gt; folders other than the INBOX - it only polls the server when you view
&gt;&gt; the folder. Some devices will THEN push to that folder for some time
&gt;&gt; after it is loaded. Other clients have settings that allow you to
&gt;&gt; pick and choose the folders you want pushed vs just available.
&gt;
&gt; It&#039;s my observation too that only messages in the INBOX are actually 
&gt; pushed to the remote device. But with about 1083 folders (number 
&gt; increasing), already processing the list of available folders causes 
&gt; a significant slow-down on my remote...
&gt;
&gt;&gt;&gt; On the other hand, my remote device won&#039;t let me access
&gt;&gt;&gt; folders not under my INBOX at all, and I definitely don&#039;t need all
&gt;&gt;&gt; the sub-folders as available through the web interface.
&gt;&gt;
&gt;&gt; Curious as to what client this is. I&#039;ve never seen a client limit
&gt;&gt; folders to those only under INBOX.
&gt;
&gt; It&#039;s the default client on WebOS 2.x (HP Pre3).
&gt;
&gt;&gt;&gt; As I have been unsuccessful to create a second IMAP user with access
&gt;&gt;&gt; to the same INBOX, but only few of the folders below, I have created
&gt;&gt;&gt; a patch to ActiveSync that allows a user to (currently) select
&gt;&gt;&gt; - only to sync folders below and including the INBOX
&gt;&gt;&gt; - limit the nesting level of the folders synced
&gt;&gt;
&gt;&gt; This of course will only work for IMAP servers that are
&gt;&gt; structured/configured in this way. My server does not place folders
&gt;&gt; under INBOX at all. I have a few hundred mailboxes (of course not all
&gt;&gt; subscribed) and most are at the same level as the INBOX.
&gt;
&gt; Yes, I had anticipated that situation - being able to select which 
&gt; folders to sync, similar to selecting which calendars and address 
&gt; books to sync, would cover that.

That would introduce a whole other level of messiness since folders are more dynamic than address books/calendars. Not that it couldn&#039;t be done. The reason we do this for calendars/address books is because EAS only supports a single one of each of those. The pref allows the user to decide which sources to combine into the single data source that is sent to the client. We don&#039;t have to worry about subscriptions/namespaces etc... with those sources.

If we do this, I think I&#039;d do it as a INBOX and Special Folders only or all subscribed folders.

&gt; That&#039;s when I thought that a client-side subscription model, 
&gt; implemented on the ActiveSync part (rather than the final mobile 
&gt; client) ought to help... and the long time it seems to take to 
&gt; process the results of a folder sync, I decided to code a filter 
&gt; option for that call. But of course, there may be (and your reply 
&gt; says there *are*) side effects I couldn&#039;t foresee.

I&#039;d need more testing to see exactly how this would affect search and such.

&gt; Do you see a different, better place to implement such a filter? I&#039;d 
&gt; be willing to give this another try.

You can&#039;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&#039;s own filtering method.

&gt; BTW: After running this filter on my server/account, processing time 
&gt; and data transfer volume have already decreased. But I see many 
&gt; instances of supposedly &quot;filtered&quot; folders in the ActiveSync debug 
&gt; log, there still is much work left to actually reduce the handling to 
&gt; only those folders I actually want to see on the remote :/

This might be left over from data not updated in the syncCache of folder state yet. Once the device requests a new FOLDERSYNC it should only request data on those folders. In other words, when it receives a FOLDERSYNC response that indicates that folder FOO is no longer available, it thinks that folder has been deleted on the server, and should not issue any more requests for it.

Update the patch with the above changes and I&#039;ll look at adding it in Horde 5.1.</description> 
   <pubDate>Sun, 20 Jan 2013 21:33:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76317</link> 
  </item> 
   
  <item> 
   <title>&gt; If we do this, I think I&#039;d do it as a INBOX and Special Fo</title> 
   <description>&gt; If we do this, I think I&#039;d do it as a INBOX and Special Folders only 
&gt; or all subscribed folders.
&gt; [...]
&gt; You can&#039;t use the prefs object inside the library code. This would 
&gt; have to be implemented inside Horde_Core_ActiveSync_Driver:: probably 
&gt; in _getMailFolders() or it&#039;s own filtering method.
&gt; [...]
&gt; Update the patch with the above changes and I&#039;ll look at adding it in 
&gt; Horde 5.1.

I&#039;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&#039;t &quot;Horde_Core_ActiveSync_Driver::_getMailFolders()&quot; part of &quot;the library code&quot; as well? For both places I&#039;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&#039;d need some architectural guidance.

Secondly, is there a proper way to detect which folders returned by &quot;_imap-&gt;getMailboxes()&quot; are &quot;special&quot; mailboxes? I believe that even if I set preference to only see &quot;INBOX&quot;, I&#039;d need at least &quot;Trash&quot; and &quot;Sent&quot; as well, and probably &quot;Drafts&quot; (and &quot;Templates&quot;?) too. I&#039;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&#039;ve seen code to somewhat handle this in IMP - would the &quot;proper&quot; way be to use the same code as IMP does, to determine which folder is a special folder? I&#039;ll then have to dig through IMP to find out if this is available to me within the ActiveSync context or if I&#039;ll have to somehow duplicate it (yuck ;) ).</description> 
   <pubDate>Mon, 21 Jan 2013 11:41:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76322</link> 
  </item> 
   
  <item> 
   <title>&gt; I&#039;ve move the code to 
&gt; Horde_Core_ActiveSync_Driver::_g</title> 
   <description>&gt; I&#039;ve move the code to 
&gt; Horde_Core_ActiveSync_Driver::_getMailFolders(), which works as 
&gt; expected (at the current stage of development). But two questions 
&gt; remain:
&gt;
&gt; Isn&#039;t &quot;Horde_Core_ActiveSync_Driver::_getMailFolders()&quot; part of &quot;the 
&gt; library code&quot; as well? For both places I&#039;ve implemented this so far, 
&gt; accessing the preferences worked as expected, probably because the 
&gt; routines were called in the context of a logged-in user. If this may 
&gt; cause problems for other types of invocation (without user context), 
&gt; I&#039;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.

&gt; Secondly, is there a proper way to detect which folders returned by 
&gt; &quot;_imap-&gt;getMailboxes()&quot; are &quot;special&quot; mailboxes? I believe that even 
&gt; if I set preference to only see &quot;INBOX&quot;, I&#039;d need at least &quot;Trash&quot; 
&gt; and &quot;Sent&quot; as well, and probably &quot;Drafts&quot; (and &quot;Templates&quot;?) too. 
&gt; I&#039;ve seen no specific attributes for these folders and remember that 
&gt; some clients I used were able to select which folder to use for these 
&gt; functions.

This is already done in Horde_Core_ActiveSync_Driver::_getMailFolder(). You just need to check the type property of the returned folder object.
</description> 
   <pubDate>Mon, 21 Jan 2013 14:44:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76324</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Isn&#039;t &quot;Horde_Core_ActiveSync_Driver::_getMailFolders()&quot; p</title> 
   <description>&gt;&gt; Isn&#039;t &quot;Horde_Core_ActiveSync_Driver::_getMailFolders()&quot; part of &quot;the
&gt;&gt; library code&quot; as well? [...]
&gt; The framework libraries are designed to be used as stand alone 
&gt; libraries - outside of a Horde environment. Core is a special library 
&gt; that contains the core libraries needed for a Horde environment.

Thanks, that explains it!

&gt;&gt; Secondly, is there a proper way to detect which folders returned by
&gt;&gt; &quot;_imap-&gt;getMailboxes()&quot; are &quot;special&quot; mailboxes? [...]
&gt; This is already done in 
&gt; Horde_Core_ActiveSync_Driver::_getMailFolder(). You just need to 
&gt; check the type property of the returned folder object.

If I had to call _getMailFolder() for every folder returned by _imap-&gt;getMailboxes(), wouldn&#039;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-&gt;getSpecialMailboxes() only once, re-map to an &quot;folder name&quot;-based array, then check every &quot;_imap-&gt;getMailboxes()&quot; result against that new array. Does that sound acceptable to you? </description> 
   <pubDate>Mon, 21 Jan 2013 16:33:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76327</link> 
  </item> 
   
  <item> 
   <title>
&gt; If I had to call _getMailFolder() for every folder retur</title> 
   <description>
&gt; If I had to call _getMailFolder() for every folder returned by 
&gt; _imap-&gt;getMailboxes(), wouldn&#039;t this get too expensive? My list may 
&gt; well be longer than 1k entries... each tme creating an instance of 
&gt; Horde_ActiveSync_Message_Folder, calling getSpecialMailboxes() etc, 
&gt; 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.

&gt; Purely functionally speaking, the quickest approach would be to call 
&gt; _imap-&gt;getSpecialMailboxes() only once, re-map to an &quot;folder 
&gt; name&quot;-based array, then check every &quot;_imap-&gt;getMailboxes()&quot; result 
&gt; against that new array. Does that sound acceptable to you?

Feel free to submit a patch and I&#039;ll review.</description> 
   <pubDate>Mon, 21 Jan 2013 16:51:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76329</link> 
  </item> 
   
  <item> 
   <title>&gt; Feel free to submit a patch and I&#039;ll review.

So here&#039;s </title> 
   <description>&gt; Feel free to submit a patch and I&#039;ll review.

So here&#039;s my attempt to a patch to /usr/share/php5/PEAR/Horde/Core/ActiveSync/Driver.php and a corresponding prefs.d file (who&#039;s contents ought to be merged into prefs.php in case your accepting the patch?)

Tests here work fine so far.

</description> 
   <pubDate>Mon, 21 Jan 2013 17:18:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76330</link> 
  </item> 
   
  <item> 
   <title>&gt; Tests here work fine so far.

Today I noticed that my ev</title> 
   <description>&gt; Tests here work fine so far.

Today I noticed that my events etc. don&#039;t get synced to my remote device. I had thought that this was handled by _getFolders(), which constructs a combined array of collections and mailnfolders, but obviously that is insufficient.
</description> 
   <pubDate>Wed, 23 Jan 2013 00:57:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76360</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Tests here work fine so far.
&gt;
&gt; Today I noticed that m</title> 
   <description>&gt;&gt; Tests here work fine so far.
&gt;
&gt; Today I noticed that my events etc. don&#039;t get synced to my remote 
&gt; device. I had thought that this was handled by _getFolders(), which 
&gt; constructs a combined array of collections and mailnfolders, but 
&gt; obviously that is insufficient.

No, that&#039;s correct. Changes to the folders returned from _getMailFolders() would have no effect on synching non-email folders.</description> 
   <pubDate>Wed, 23 Jan 2013 01:24:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76362</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Feel free to submit a patch and I&#039;ll review.
&gt;
&gt; So her</title> 
   <description>&gt;&gt; Feel free to submit a patch and I&#039;ll review.
&gt;
&gt; So here&#039;s my attempt to a patch to 
&gt; /usr/share/php5/PEAR/Horde/Core/ActiveSync/Driver.php

1) You need to review http://www.horde.org/apps/horde/docs/CODING_STANDARDS
2) _getMailFolder() still calls getSpecialMailboxes() and compares the names anyway. You should build the map of the special mailboxes regardless if it is $inbox_only or not, store it locally in the object and use it in getMailFolder() as well.</description> 
   <pubDate>Wed, 23 Jan 2013 01:42:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76364</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Today I noticed that my events etc. don&#039;t get synced to m</title> 
   <description>&gt;&gt; Today I noticed that my events etc. don&#039;t get synced to my remote
&gt;&gt; device.[...].
&gt;
&gt; No, that&#039;s correct. Changes to the folders returned from 
&gt; _getMailFolders() would have no effect on synching non-email folders.

Yes, my fault: although I don&#039;t recall having changed it, the configuration for an add&#039;l calendar to sync was gone - resulting in an almost empty calendar on the remote device. Once I re-added that calendar in my kronolith sync preferences and fully re-established the association (I really had to delete and re-add the account on the remote), both sets of events were synced.</description> 
   <pubDate>Wed, 23 Jan 2013 21:12:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76379</link> 
  </item> 
   
  <item> 
   <title>&gt; 1) You need to review http://www.horde.org/apps/horde/docs</title> 
   <description>&gt; 1) You need to review http://www.horde.org/apps/horde/docs/CODING_STANDARDS
&gt; 2) _getMailFolder() still calls getSpecialMailboxes() and compares 
&gt; the names anyway. You should build the map of the special mailboxes 
&gt; regardless if it is $inbox_only or not, store it locally in the 
&gt; object and use it in getMailFolder() as well.

I&#039;ll take your comments and accordingly will re-work the code - but this may take a day or two (not that I believe 5.1 is already lurking behind the next corner ;) )

That functional change really helped to reduce the load on my device to a reasonable level.</description> 
   <pubDate>Wed, 23 Jan 2013 21:15:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76380</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Feel free to submit a patch and I&#039;ll review.
&gt;&gt;
&gt;&gt; So </title> 
   <description>&gt;&gt;&gt; Feel free to submit a patch and I&#039;ll review.
&gt;&gt;
&gt;&gt; So here&#039;s my attempt to a patch to
&gt;&gt; /usr/share/php5/PEAR/Horde/Core/ActiveSync/Driver.php
&gt;
&gt; 1) You need to review http://www.horde.org/apps/horde/docs/CODING_STANDARDS
&gt; 2) _getMailFolder() still calls getSpecialMailboxes() and compares 
&gt; the names anyway. You should build the map of the special mailboxes 
&gt; regardless if it is $inbox_only or not, store it locally in the 
&gt; object and use it in getMailFolder() as well.

I&#039;ve tried to incorporate your comments - is this new patch sufficient for approval?

Concerning the array of special mailboxes - is my approach (initializing the member to &quot;null&quot; in the c&#039;tor and verifying against that value for lazy loading in &quot;_getMailFolders()&quot;) correct?

Let me know if I should further improve this patch.</description> 
   <pubDate>Mon, 04 Feb 2013 17:47:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t76564</link> 
  </item> 
   
  <item> 
   <title>On reviewing this some more, I&#039;m going to reject this. Excha</title> 
   <description>On reviewing this some more, I&#039;m going to reject this. Exchange has a limit of 1000 folders by default, if a client cannot handle up to this many folders without falling apart, it&#039;s a client issue. This approach is just too fraught with the possibility of errors in other parts of the code (like searching, message moving etc...).</description> 
   <pubDate>Mon, 07 Apr 2014 16:32:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11983#t83224</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
