Mailspring/packages/nylas-sync/syncback_tasks/create-folder.imap.js
2016-06-30 11:54:12 -07:00

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