From d912721723405f482de386e9c80e50b3a724c882 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Wed, 29 Jul 2020 10:22:21 +0200 Subject: [PATCH] 'addBaseFolder' fully implemented --- source/client/mail.d | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/client/mail.d b/source/client/mail.d index 9db312c..f4b01c3 100644 --- a/source/client/mail.d +++ b/source/client/mail.d @@ -70,11 +70,10 @@ public final class Mailbox { Folder newFolder; - /* TODO: Implement folder creation */ - + /* Create the directory */ mkdir("mailboxes/"~username~"/"~folderName); - // newFolder = new Folder(this, null, folderName); + newFolder = new Folder(this, folderName); return newFolder; } @@ -137,6 +136,8 @@ public final class Folder * * The Mailbox is specified by `mailbox` and the location * of the folder within the mailbox by `folderPath`. + * + * TODO: DIsallow simply empty folder name (somewhere) */ this(Mailbox mailbox, string folderPath) {