mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 18:32:20 +08:00
13 lines
308 B
JavaScript
13 lines
308 B
JavaScript
const SyncbackTask = require('./syncback-task')
|
|
|
|
class CreateFolderIMAP extends SyncbackTask {
|
|
description() {
|
|
return `CreateFolder`;
|
|
}
|
|
|
|
run(db, imap) {
|
|
const folderName = this.syncbackRequestObject().props.displayName
|
|
return imap.addBox(folderName)
|
|
}
|
|
}
|
|
module.exports = CreateFolderIMAP
|