Return mailID of stored mail

This commit is contained in:
Tristan B. Kildaire 2020-07-27 17:02:03 +02:00
parent ed2694bf35
commit 1e8cd9117d
2 changed files with 8 additions and 1 deletions

View File

@ -170,7 +170,9 @@ public final class ButterflyClient : Thread
Folder storeFolder = new Folder(mailbox, commandBlock["request"]["folder"].str());
/* Store the message in the mailbox */
storeMail(storeFolder, mailBlock);
Mail storedMail = storeMail(storeFolder, mailBlock);
responseBlock["response"]["mailID"] = storedMail.getMailID();
}
else
{

View File

@ -338,4 +338,9 @@ public final class Mail
{
return "\""~mailID~"\"";
}
public string getMailID()
{
return mailID;
}
}