This commit is contained in:
Andris Reinman 2017-11-13 15:49:08 +02:00
parent 1158ae56f6
commit ee35078ce4

View file

@ -228,6 +228,9 @@ module.exports = (options, callback) => {
for (let i = 0, len = deliveries.length; i < len; i++) { for (let i = 0, len = deliveries.length; i < len; i++) {
let recipient = deliveries[i]; let recipient = deliveries[i];
console.log(require('util').inspect(recipient, false, 22));
let deliveryZone = options.zone || config.sender.zone || 'default'; let deliveryZone = options.zone || config.sender.zone || 'default';
let recipientDomain = recipient.to.substr(recipient.to.lastIndexOf('@') + 1).replace(/[[\]]/g, ''); let recipientDomain = recipient.to.substr(recipient.to.lastIndexOf('@') + 1).replace(/[[\]]/g, '');