From 6ef09d62972987935cb5661db664e1d84bfa15b2 Mon Sep 17 00:00:00 2001 From: mguessan Date: Wed, 20 Jan 2010 22:43:38 +0000 Subject: [PATCH] IMAP: implement LIST "" "*%" for emacs git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@923 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/imap/ImapConnection.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/java/davmail/imap/ImapConnection.java b/src/java/davmail/imap/ImapConnection.java index fe5dd25d..a8ecf285 100644 --- a/src/java/davmail/imap/ImapConnection.java +++ b/src/java/davmail/imap/ImapConnection.java @@ -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");