mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-04 07:02:45 +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 => {
|
||||
if (userData.forward && !filterActions.get('delete')) {
|
||||
// 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')) {
|
||||
|
|
Loading…
Reference in a new issue