Skip to content

Commit

Permalink
IMAP: merge patch from #140, return folders including special use fol…
Browse files Browse the repository at this point in the history
…ders when query is %

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@3477 3d1905a2-6b24-0410-a738-b14d5a86fcbd
  • Loading branch information
mguessan committed Nov 12, 2023
1 parent b78a2a2 commit 496808e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java/davmail/imap/ImapConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ public void run() {
}
boolean wildcard = folderQuery.endsWith("%") && !folderQuery.contains("/") && !folderQuery.equals("%");
boolean recursive = folderQuery.endsWith("*");
sendSubFolders(command, folderQuery.substring(0, folderQuery.length() - 1), recursive, wildcard, specialOnly);
sendSubFolders(command, folderQuery.substring(0, folderQuery.length() - 1), recursive, wildcard,
specialOnly && !folderQuery.equals("%"));
sendClient(commandId + " OK " + command + " completed");
} else {
ExchangeSession.Folder folder = null;
Expand Down

0 comments on commit 496808e

Please sign in to comment.