[Tickets #11626] Re: ActiveSync : auto detection of special folders (trash, sent, etc...) and hierarchy fails

bugs at horde.org bugs at horde.org
Tue Nov 6 07:19:12 UTC 2012


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

Ticket URL: http://bugs.horde.org/ticket/11626
------------------------------------------------------------------------------
  Ticket             | 11626
  Updated By         | ryu at ryux.org
  Summary            | ActiveSync : auto detection of special folders (trash,
                     | sent, etc...) and hierarchy fails
  Queue              | Synchronization
  Version            | Git master
  Type               | Bug
  State              | Feedback
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             | Michael Rubinsky
+New Attachment     | expectedHierarchy.png
------------------------------------------------------------------------------


ryu at ryux.org (2012-11-06 07:19) wrote:

>>
>> It contains : Level1.Level6 instead of INBOX.Level1.Level6. $sid
>> contains the full name.
>>
>> 2012-11-03T09:10:25+00:00 DEBUG: --- HORDEDEBUG --- f = Array
>> (
>>     [a] => 8
>>     [d] => .
>>     [label] => Level1.Level6
>>     [level] => 1
>>     [ob] => Horde_Imap_Client_Mailbox Object
>>         (
>>             [_utf7imap:protected] =>
>>             [_utf8:protected] => INBOX.Level1.Level6
>>         )
>>
>> )
>
> But these folders shouldn't visually be subfolders of INBOX.

Yes, you're right. Visually, 'label' contains the good value.But, in  
ActiveSync, folder has its serverId as $sid. So, to retrieve parent's  
folder, we *must* put full parent serverid. Except that actually, the  
value is false...

Example :

Parent => Folder 1
=> serverid = 'INBOX.Folder1'
=> parentid = '0'
=> displayname = 'Level1'

*FALSE*
Child => Folder 2 (Folder1.Folder2)
=> serverid = 'INBOX.Folder1.Folder2'
=> parentid = 'Folder1'    ======> 'Folder1' does not exists as serverid!
=> displayname = 'Folder2'

*OK*
Child => Folder 2 (Folder1.Folder2)
=> serverid = 'INBOX.Folder1.Folder2'
=> parentid = 'INBOX.Folder1'
=> displayname = 'Folder2'

With this configuration, result is OK, as expected. See the screenshot...




ryu at ryux.org (2012-11-06 07:19) uploaded: expectedHierarchy.png

http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=expectedHierarchy.png&ticket=11626&fn=%2FexpectedHierarchy.png





More information about the bugs mailing list