Webmail: new option to create subfolder

This commit is contained in:
Francis Lachapelle
2015-06-11 15:48:14 -04:00
parent 2d076358d3
commit 4248cbcb16
2 changed files with 16 additions and 3 deletions
@@ -235,6 +235,16 @@
return Mailbox.$$resource.post(this.id, 'batchDelete', {uids: uids});
};
/**
* @function $newMailbox
* @memberof Account.prototype
* @desc Create a new mailbox on the server and refresh the list of mailboxes.
* @returns a promise of the HTTP operations
*/
Mailbox.prototype.$newMailbox = function(path, name) {
return this.$account.$newMailbox(path, name);
};
/**
* @function $omit
* @memberof Mailbox.prototype