wildduck/lib/maildrop.js
Andris Reinman 0efcf316a5 v1.0.107
2018-01-09 13:50:29 +02:00

20 lines
459 B
JavaScript

'use strict';
const config = require('wild-config');
const db = require('./db');
const Maildropper = require('./maildropper');
let maildropper;
module.exports = (options, callback) => {
maildropper =
maildropper ||
new Maildropper({
db,
zone: config.sender.zone,
collection: config.sender.collection,
gfs: config.sender.gfs
});
return maildropper.push(options, callback);
};