Commit 3c23e4f1 authored by Francisco Cunha's avatar Francisco Cunha

P4A-816 - Rearrange order of calls

parent 9da18912
......@@ -164,9 +164,8 @@ public class ImapStore extends RemoteStore {
private Set<String> listFolders(ImapConnection connection, boolean subscribedOnly) throws IOException,
MessagingException {
String encodedListPrefix = ImapUtility.encodeString(getCombinedPrefix() + "*");
String commandResponse = subscribedOnly ? "LSUB" : "LIST";
String encodedListPrefix = ImapUtility.encodeString(getCombinedPrefix() + "*");
List<ImapResponse> responses = connection.
executeSimpleCommand(String.format("%s \"\" %s", commandResponse, encodedListPrefix));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment