mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-15 06:06:35 +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
|