Imap subfolders not shown in list command - perhaps acls misconfiguration

Posted by mschenk74 on Server Fault See other posts from Server Fault or by mschenk74
Published on 2013-06-26T07:30:15Z Indexed on 2013/06/26 22:23 UTC
Read the original article Hit count: 167

Filed under:
|
|

My goal is to copy the whole folder structure with all mails from one imap account to another. The tool I am using for this is imapcopy (the java based version from code.google.com since the unix/linux tool packaged with debian doesn't support imaps).

Now, there is one problem: The tool only copies the top-level folders and not the nested ones. To narrow down the problem I have downloaded the source code of imapcopy and debugged into the code. There I noticed that the folder.list() (which is mapped to the list "%" imap command) returns an empty list. But when I do a getFolder(<subfoldername>) I can access those subfolders. After reading some documentation about the features of imap I think that the problem might be some misconfigured ACLs which prohibit the listing of those folders but allow to read ad write to them.

How should I check this ACLs? which tools do I need for this task?

© Server Fault or respective owner

Related posts about java

Related posts about acl