mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-30 10:47:17 +00:00
@@ -571,6 +571,16 @@
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $canFolderAs
|
||||
* @memberof Mailbox.prototype
|
||||
* @desc Check if the folder can be set as Drafts/Sent/Trash
|
||||
* @returns true if folder is eligible
|
||||
*/
|
||||
Mailbox.prototype.$canFolderAs = function() {
|
||||
return this.type == 'folder' && this.level === 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $setFolderAs
|
||||
* @memberof Mailbox.prototype
|
||||
|
||||
Reference in New Issue
Block a user