Mailspring/packages/nylas-sync/syncback_tasks/create-folder.imap.js

14 lines
308 B
JavaScript
Raw Normal View History

2016-07-01 02:50:26 +08:00
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