wildduck/lib/handlers/on-create.js
2017-07-20 21:33:41 +03:00

15 lines
373 B
JavaScript

'use strict';
// CREATE "path/to/mailbox"
module.exports = (server, mailboxHandler) => (path, session, callback) => {
server.logger.debug(
{
tnx: 'create',
cid: session.id
},
'[%s] CREATE "%s"',
session.id,
path
);
mailboxHandler.create(session.user.id, path, { subscribed: true }, callback);
};