mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-06 08:02:27 +08:00
fixed broken forwarding
This commit is contained in:
parent
23516a47a9
commit
82913a1a14
1 changed files with 5 additions and 1 deletions
|
@ -329,7 +329,11 @@ class FilterHandler {
|
||||||
let forwardMessage = done => {
|
let forwardMessage = done => {
|
||||||
if (userData.forward && !filterActions.get('delete')) {
|
if (userData.forward && !filterActions.get('delete')) {
|
||||||
// forward to default recipient only if the message is not deleted
|
// forward to default recipient only if the message is not deleted
|
||||||
forwardTargets.set(userData.forward, { type: 'mail', value: userData.forward });
|
(Array.isArray(userData.forward) ? userData.forward : [].concat(userData.forward || [])).forEach(forward => {
|
||||||
|
if (forward) {
|
||||||
|
forwardTargets.set(forward, { type: 'mail', value: forward });
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userData.targetUrl && !filterActions.get('delete')) {
|
if (userData.targetUrl && !filterActions.get('delete')) {
|
||||||
|
|
Loading…
Reference in a new issue