This commit is contained in:
Andris Reinman 2019-07-08 11:33:27 +03:00
parent c61eb2f939
commit 231f52d72a
2 changed files with 16 additions and 13 deletions

View file

@ -68,10 +68,9 @@ class Maildropper {
break;
case 'relay':
[]
.concat(options.to || [])
.concat(target.recipient || [])
.forEach(to => {
{
let recipients = new Set([].concat(options.to || []).concat(target.recipient || []));
recipients.forEach(to => {
let relayData = target.value;
if (typeof relayData === 'string') {
relayData = tools.getRelayData(relayData);
@ -86,18 +85,22 @@ class Maildropper {
forwardedFor: target.recipient
});
});
}
break;
case 'http':
[].concat(options.to || []).forEach(to => {
deliveries.push({
to,
http: true,
targetUrl: target.value,
skipSRS: true,
forwardedFor: target.recipient
{
let recipients = new Set([].concat(options.to || []).concat(target.recipient || []));
recipients.forEach(to => {
deliveries.push({
to,
http: true,
targetUrl: target.value,
skipSRS: true,
forwardedFor: target.recipient
});
});
});
}
break;
}
});

View file

@ -1,6 +1,6 @@
{
"name": "wildduck",
"version": "1.20.9",
"version": "1.20.10",
"description": "IMAP/POP3 server built with Node.js and MongoDB",
"main": "server.js",
"scripts": {