mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-10 09:32:28 +08:00
v1.20.10
This commit is contained in:
parent
c61eb2f939
commit
231f52d72a
2 changed files with 16 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue