mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-10 17:47:07 +08:00
15 lines
373 B
JavaScript
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);
|
|
};
|