Webmail: new option to create subfolder

This commit is contained in:
Francis Lachapelle
2014-12-18 16:30:17 -05:00
parent 494a809276
commit 53ea174674
2 changed files with 16 additions and 3 deletions

View File

@@ -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