Return mailID of stored mail
This commit is contained in:
parent
ed2694bf35
commit
1e8cd9117d
|
@ -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
|
||||
{
|
||||
|
|
|
@ -338,4 +338,9 @@ public final class Mail
|
|||
{
|
||||
return "\""~mailID~"\"";
|
||||
}
|
||||
|
||||
public string getMailID()
|
||||
{
|
||||
return mailID;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue