1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-14 03:32:22 -05:00

IMAP: implement LIST "" "*%" for emacs

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@923 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-01-20 22:43:38 +00:00
parent c6abdc8f23
commit 6ef09d6297

View File

@ -147,6 +147,9 @@ public class ImapConnection extends AbstractConnection {
}
sendClient("* " + command + " (\\HasChildren) \"/\" \"/public\"");
}
if ("*%".equals(folderQuery)) {
folderQuery = "*";
}
boolean recursive = folderQuery.endsWith("*") && !folderQuery.startsWith("/public");
sendSubFolders(command, folderQuery.substring(0, folderQuery.length() - 1), recursive);
sendClient(commandId + " OK " + command + " completed");