wildduck/lib/handlers/on-create.js

16 lines
373 B
JavaScript
Raw Normal View History

'use strict';
// CREATE "path/to/mailbox"
2017-07-21 02:33:41 +08:00
module.exports = (server, mailboxHandler) => (path, session, callback) => {
server.logger.debug(
{
tnx: 'create',
cid: session.id
},
'[%s] CREATE "%s"',
session.id,
path
);
2017-07-21 02:33:41 +08:00
mailboxHandler.create(session.user.id, path, { subscribed: true }, callback);
};