When I move “Folder1” back to INBOX, the folder is renamed at IMAP server, however, at next synchronization “Folder1” backs to source folder.
[WBXML] I FolderHierarchy:FolderUpdate
[WBXML] I FolderHierarchy:SyncKey
[WBXML] I {a234337d-c081-4f9b-8595-cf7888cb3cc7}3
[WBXML] I </FolderHierarchy:SyncKey>
[WBXML] I FolderHierarchy:ServerEntryId
[WBXML] I Folder1
[WBXML] I </FolderHierarchy:ServerEntryId>
[WBXML] I FolderHierarchy:ParentId
[WBXML] I INBOX
[WBXML] I </FolderHierarchy:ParentId>
[WBXML] I FolderHierarchy:DisplayName
[WBXML] I Folder1
[WBXML] I </FolderHierarchy:DisplayName>
[WBXML] I </FolderHierarchy:FolderUpdate>
[DEBUG] StateManager->loadHierarchyCache(): ‘DEVICEID12345678-a234337d-c081-4f9b-8595-cf7888cb3cc7-hc-3’
[DEBUG] SqlStateMachine->GetState(): devid:‘DEVICEID12345678’ type:‘hc’ key:‘a234337d-c081-4f9b-8595-cf7888cb3cc7’ counter:‘3’
[DEBUG] SqlStateMachine->CleanStates(): devid:‘DEVICEID12345678’ type:‘hc’ key:‘a234337d-c081-4f9b-8595-cf7888cb3cc7’ counter:‘3’ thisCounterOnly:‘false’
// asdevice.php: ASDevice::GetFolderBackendId(‘Folder1’)
[INBOX] => Array
(
[2] => 2
[5] =>
[1] => c9b9d65e-958e-4176-97c2-44a5e720262e
)
[Folder1] => Array
(
[2] => 12
[5] =>
)
[Trash] => Array
(
[2] => 4
[5] =>
)
[DEBUG] ASDevice->GetHierarchyCache(): HierarchyCache is up - Cached objects: 3
[DEBUG] ZPush::GetAdditionalSyncFolderStore(‘Folder1’): ‘false’
[DEBUG] ZPush::GetAdditionalSyncFolderStore(‘INBOX’): ‘false’
[DEBUG] ChangesMemoryWrapper->ImportFolderChange(): Set foldertype for folder ‘Folder1’ from cache as it was not sent: ‘12’
[ INFO] BackendIMAP->ChangeFolder(‘INBOX’,‘Folder1’,‘Folder1’,‘12’)
[DEBUG] SqlStateMachine->GetState(): devid:‘DEVICEID12345678’ type:‘bs’ key:‘null’ counter:‘1526667813’
// imap.php: BackendIMAP::ChangeFolder: ChangeFolder(‘INBOX’, ‘Folder1’, ‘Folder1’, ‘12’)
// SOURCE: {mail.dblongo.com:143/imap/notls/norsh}Trash/Folder1
// TARGET: {mail.dblongo.com:143/imap/notls/norsh}INBOX/Folder1
// StateObject Object: Before rename folder
[SO_internalid:StateObject:private] => 472fbf818187
[data:protected] => Array
(
[fmfidfimap] => Array
(
[INBOX] => INBOX
[Folder1] => Trash/Folder1
[Trash] => Trash
)
[fmfimapfid] => Array
(
[INBOX] => INBOX
[INBOX/Folder1] => Folder1
[Trash] => Trash
[Trash/Folder1] => Folder1
)
[fmfimapfidlowercase] => Array
(
[inbox] => INBOX
[inbox/folder1] => Folder1
[trash] => Trash
[trash/folder1] => Folder1
)
[serverdelimiter] => /
)
// StateObject Object: After folder rename
[SO_internalid:StateObject:private] => 472fbf818187
[data:protected] => Array
(
[fmfidfimap] => Array
(
[INBOX] => INBOX
[Folder1] => INBOX/Folder1
[Trash] => Trash
)
[fmfimapfid] => Array
(
[INBOX] => INBOX
[INBOX/Folder1] => Folder1
[Trash] => Trash
)
[fmfimapfidlowercase] => Array
(
[inbox] => INBOX
[inbox/folder1] => Folder1
[trash] => Trash
)
[serverdelimiter] => /
)
// importchangesdiff.php: ImportChangesDiff::ImportFolderChange(’’, ‘’, ‘Folder1’, ‘12’)
// SyncFolder Object
[serverid] => Folder1
[parentid] => INBOX
[displayname] => Folder1
[type] => 12
[Store] =>
[NoBackendFolder] =>
[BackendId] => Folder1
[Flags] =>
[TypeReal] =>
[flags] =>
[content] =>
[DEBUG] BackendIMAP->getImapIdFromFolderId(‘Folder1’) = INBOX/Folder1
[DEBUG] BackendIMAP->getFolderIdFromImapId(‘INBOX’) = INBOX
[DEBUG] BackendIMAP->convertImapId(‘INBOX’) = INBOX
[DEBUG] BackendIMAP->GetFolder(‘Folder1’): ‘SyncFolder (
(S) serverid => Folder1
(S) parentid => INBOX
(S) displayname => Folder1
(S) type => 12
(S) Store => null
(S) NoBackendFolder => null
(S) BackendId => null
(S) Flags => null
(S) TypeReal => null
unsetVars(Array) size: 0
supportsPrivateStripping => false
flags => false
content => null
)’
[WBXML] O FolderHierarchy:FolderUpdate
[WBXML] O FolderHierarchy:Status
[WBXML] O 1
[WBXML] O </FolderHierarchy:Status>
[WBXML] O FolderHierarchy:SyncKey
[WBXML] O {a234337d-c081-4f9b-8595-cf7888cb3cc7}4
[WBXML] O </FolderHierarchy:SyncKey>
[WBXML] O </FolderHierarchy:FolderUpdate>
[DEBUG] SqlStateMachine->GetState(): devid:‘DEVICEID12345678’ type:‘devicedata’ key:‘null’ counter:‘false’
[WBXML] I FolderHierarchy:FolderSync
[WBXML] I FolderHierarchy:SyncKey
[WBXML] I {a234337d-c081-4f9b-8595-cf7888cb3cc7}4
[WBXML] I </FolderHierarchy:SyncKey>
[WBXML] I </FolderHierarchy:FolderSync>
[DEBUG] BackendIMAP->getImapIdFromFolderId(‘Folder1’) = Trash/Folder1
[DEBUG] BackendIMAP->getFolderIdFromImapId(‘Trash’) = Trash
[DEBUG] BackendIMAP->convertImapId(‘Trash’) = Trash
[DEBUG] BackendIMAP->GetFolder(‘Folder1’): ‘SyncFolder (
(S) serverid => Folder1
(S) parentid => Trash
(S) displayname => Folder1
(S) type => 12
(S) Store => null
(S) NoBackendFolder => null
(S) BackendId => null
(S) Flags => null
(S) TypeReal => null
unsetVars(Array) size: 0
supportsPrivateStripping => false
flags => false
content => null
)’
[DEBUG] SyncObject->equals() false on field ‘parentid’: ‘Trash’ != ‘INBOX’ using strictTypeCompare
[DEBUG] HierarchyCache: AddFolder() serverid: Folder1 displayname: Folder1
[WBXML] O FolderHierarchy:FolderSync
[WBXML] O FolderHierarchy:Status
[WBXML] O 1
[WBXML] O </FolderHierarchy:Status>
[WBXML] O FolderHierarchy:SyncKey
[WBXML] O {a234337d-c081-4f9b-8595-cf7888cb3cc7}5
[WBXML] O </FolderHierarchy:SyncKey>
[WBXML] O FolderHierarchy:Changes
[WBXML] O FolderHierarchy:Count
[WBXML] O 1
[WBXML] O </FolderHierarchy:Count>
[WBXML] O FolderHierarchy:Update
[WBXML] O FolderHierarchy:ServerEntryId
[WBXML] O Folder1
[WBXML] O </FolderHierarchy:ServerEntryId>
[WBXML] O FolderHierarchy:ParentId
[WBXML] O Trash
[WBXML] O </FolderHierarchy:ParentId>
[WBXML] O FolderHierarchy:DisplayName
[WBXML] O Folder1
[WBXML] O </FolderHierarchy:DisplayName>
[WBXML] O FolderHierarchy:Type
[WBXML] O 12
[WBXML] O </FolderHierarchy:Type>
[WBXML] O </FolderHierarchy:Update>
[WBXML] O </FolderHierarchy:Changes>
// diffstate.php: DiffState::getDiffTo(‘Array’)
[0] => Array
(
[id] => INBOX
[type] => change
)
[1] => Array
(
[id] => Folder1
[type] => change
)
[2] => Array
(
[id] => Trash
[type] => change
)
[WBXML] O </FolderHierarchy:FolderSync>
[WBXML] WBXML-OUT: AwFqAAAHVkwDMQABUgN7YTIzNDMzN2QtYzA4MS00ZjliLTg1OTUtY2Y3ODg4Y2IzY2M3fTUAAU5XAzEAAVFIA0ZvbGRlcjEAAUkDVHJhc2gAAUcDRm9sZGVyMQABSgMxMgABAQEB
[WBXML] WBXML-IN : AwFqAAAHVlIDe2EyMzQzMzdkLWMwODEtNGY5Yi04NTk1LWNmNzg4OGNiM2NjN300AAEB
[WBXML] O Ping:Ping
[WBXML] O Ping:Status
[WBXML] O 3
[WBXML] O </Ping:Status>
[WBXML] O </Ping:Ping>
[WBXML] I Ping:Ping
[WBXML] I Ping:LifeTime
[WBXML] I 470
[WBXML] I </Ping:LifeTime>
[WBXML] I Ping:Folders
[WBXML] I Ping:Folder
[WBXML] I Ping:ServerEntryId
[WBXML] I INBOX
[WBXML] I </Ping:ServerEntryId>
[WBXML] I Ping:FolderType
[WBXML] I Email
[WBXML] I </Ping:FolderType>
[WBXML] I </Ping:Folder>
[WBXML] I </Ping:Folders>
[WBXML] I </Ping:Ping>
[DEBUG] BackendIMAP->getImapIdFromFolderId(‘Folder1’) = Trash/Folder1
[DEBUG] BackendIMAP->getFolderIdFromImapId(‘Trash’) = Trash
[DEBUG] BackendIMAP->convertImapId(‘Trash’) = Trash
[DEBUG] BackendIMAP->GetFolder(‘Folder1’): ‘SyncFolder (
(S) serverid => Folder1
(S) parentid => Trash
(S) displayname => Folder1
(S) type => 12
(S) Store => null
(S) NoBackendFolder => null
(S) BackendId => null
(S) Flags => null
(S) TypeReal => null
unsetVars(Array) size: 0
supportsPrivateStripping => false
flags => false
content => null
)’
[DEBUG] ChangesMemoryWrapper->ImportFolderChange(): Change for folder ‘Folder1’ will not be sent as modification is not relevant.
// diffstate.php: DiffState::getDiffTo(‘Array’)
[0] => Array
(
[id] => INBOX
[type] => change
)
[1] => Array
(
[id] => Folder1
[type] => change
)
[2] => Array
(
[id] => Trash
[type] => change
)
Please, someone can help me?