diff --git a/lib/filter-handler.js b/lib/filter-handler.js index 2aff4ebd..7ae859d0 100644 --- a/lib/filter-handler.js +++ b/lib/filter-handler.js @@ -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')) {