Implemented `deleteMessage`

This commit is contained in:
Tristan B. Kildaire 2020-06-18 16:55:13 +02:00
parent e960bc6fa0
commit a1514c1cba
1 changed files with 4 additions and 9 deletions

View File

@ -285,7 +285,10 @@ public final class Mail
private void deleteMessage()
{
mailbox.deleteMessage(folder, mailID);
/* Get the file system path to this message */
string messageFilePath = mailbox.username~"/"~folder.folderPath~"/"~mailID;
remove(messageFilePath);
}
private void sanityCheck()
@ -293,14 +296,6 @@ public final class Mail
/* TODO: Throw error if the message is somehow malformed */
}
public string[] getRecipients()
{
string[] recipients;
/* TODO: Implement me */
return recipients;
}