2018-12-16 21:44:50 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
// Set module title
|
|
|
|
module.exports.title = 'Mailtrain integration (main)';
|
|
|
|
|
|
|
|
// Initialize the module
|
|
|
|
module.exports.init = (app, done) => {
|
|
|
|
|
|
|
|
process.send({
|
|
|
|
type: 'zone-mta-started'
|
|
|
|
});
|
|
|
|
|
2019-05-25 19:57:11 +00:00
|
|
|
process.on('message', msg => {
|
|
|
|
if (msg === 'exit') {
|
|
|
|
process.exit(); }
|
|
|
|
});
|
|
|
|
|
2018-12-16 21:44:50 +00:00
|
|
|
done();
|
|
|
|
};
|