Fixed bug whereby JSONValue object did not exist causing failure, for 'storeMail'

This commit is contained in:
Tristan B. Kildaire 2020-07-29 10:54:19 +02:00
parent d912721723
commit 0bf0af860a
2 changed files with 4 additions and 3 deletions

View File

@ -172,7 +172,10 @@ public final class ButterflyClient : Thread
/* Store the message in the mailbox */
Mail storedMail = storeMail(storeFolder, mailBlock);
responseBlock["response"]["mailID"] = storedMail.getMailID();
/* Set the response to be the mail message's ID */
JSONValue response;
response["mailID"] =storedMail.getMailID();
responseBlock["response"] = response;
}
else
{

View File

@ -61,8 +61,6 @@ public final class Mailbox
folders ~= new Folder(this, dirEntry.name());
}
/* TODO: Implement me */
return folders;
}