Hello, I'm having some trouble working on a webapp managing the imap tree on 
Dovecot.
The same doesn't happen on other imap servers (e.g. Cyrus).
Looks like if I receive shared folders from another user, and try to rename a 
folder in it, the rename command returns "ok", then if you list the new folder 
name, it isn't there.
Looks like you've lost all the original folder because if you try listing the 
parent folder, you don't have nor the original nor the new name, even trying to 
logout/disconnect and reconnect/login.
Luckily nothing is lost actually, if you try to create a new folder on the 
parent folder, and then list the parent folder, you get both the newly created 
one and the renamed one also appears magically!
Here is the IMAP trace to reproduce:
*** ON ACCOUN RECEIVING SHARED FOLDER
*** PREPARE A FOLDER IN SHARED TREE WITH JUST ONE CHILD "aaaa"
*** THEN RENAME aaaa FOLDER TO bbbb
*** AFTER "OK Rename" FOLDER IS NOT PRESENT IN LIST
A3 LIST "" Shared/[email protected]/Junk/aaaa
* LIST (\HasNoChildren) "/" Shared/[email protected]/Junk/aaaa
A3 OK List completed.
A4 RENAME Shared/[email protected]/Junk/aaaa 
Shared/[email protected]/Junk/bbbb
A4 OK Rename completed.
A5 LIST "" Shared/[email protected]/Junk/bbbb
A5 OK List completed.
*** bbbb IS NOT LISTED AFTER "OK Rename"!
*** LOGOUT/DISCONNECT - CONNECT/LOGIN AND LIST BRANCH ***
A66 LIST "" "Shared/[email protected]/%"
* LIST (\HasNoChildren) "/" Shared/[email protected]/Sent
* LIST (\HasNoChildren) "/" Shared/[email protected]/Drafts
* LIST (\HasNoChildren) "/" Shared/[email protected]/Trash
* LIST (\HasNoChildren) "/" Shared/[email protected]/Spam
* LIST (\HasNoChildren) "/" Shared/[email protected]/Junk
* LIST (\HasNoChildren) "/" Shared/[email protected]/INBOX
A66 OK List completed.
*** Junk HAS NO CHILDREN!
*** CREATE A NEW FOLDER IN Junk ***
A68 CREATE Shared/[email protected]/Junk/zzzz
A68 OK Create completed.
A69 LIST "" Shared/[email protected]/Junk/zzzz
* LIST (\HasNoChildren) "/" Shared/[email protected]/Junk/zzzz
A69 OK List completed.
*** "zzzz" IS LISTED, SO NOW LIST PARENT BRANCH ***
A26 LIST "" "Shared/[email protected]/%"
* LIST (\HasNoChildren) "/" Shared/[email protected]/Sent
* LIST (\HasNoChildren) "/" Shared/[email protected]/Drafts
* LIST (\HasNoChildren) "/" Shared/[email protected]/Trash
* LIST (\HasNoChildren) "/" Shared/[email protected]/Spam
* LIST (\HasChildren) "/" Shared/[email protected]/Junk
* LIST (\HasNoChildren) "/" Shared/[email protected]/INBOX
A26 OK List completed.
*** Junk NOW HAS CHILDREN, SO NOW LIST Junk BRANCH ***
A29 LIST "" "Shared/[email protected]/Junk/%"
* LIST (\HasNoChildren) "/" Shared/[email protected]/Junk/bbbb
* LIST (\HasNoChildren) "/" Shared/[email protected]/Junk/zzzz
A29 OK List completed.
*** bbbb MAGICALLY APPEARS! NOTHING IS LOST.
Is there anything I can do to force "bbbb" to reappear without having to create 
a new folder?
Any idea?
Thanks in advance,
Gabriele
----------------------------------------------------------------------------------------
Sonicle S.r.l.
:
http://www.sonicle.com
Music:
http://www.gabrielebulfon.com
Quantum Mechanics :
http://www.cdbaby.com/cd/gabrielebulfon

Reply via email to