Commit 76f22a76 authored by Francisco Cunha's avatar Francisco Cunha Committed by Hussein

P4A-816 - Subscribe imap folder after creating it

parent f36757a5
......@@ -310,6 +310,7 @@ class ImapFolder extends Folder<ImapMessage> {
String encodedFolderName = folderNameCodec.encode(getPrefixedName());
String escapedFolderName = ImapUtility.encodeString(encodedFolderName);
connection.executeSimpleCommand(String.format("CREATE %s", escapedFolderName));
connection.executeSimpleCommand(String.format("SUBSCRIBE %s", escapedFolderName));
return true;
} catch (NegativeImapResponseException e) {
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