Treat on,y Permanent bounces as hard bounces, skip everything else (eg autorseponders)
This commit is contained in:
parent
b35be19824
commit
efe65ffc3c
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ router.post('/aws', (req, res, next) => {
|
||||||
|
|
||||||
switch (req.body.Message.notificationType) {
|
switch (req.body.Message.notificationType) {
|
||||||
case 'Bounce':
|
case 'Bounce':
|
||||||
campaigns.updateMessage(message, 'bounced', ['Undetermined', 'Permanent'].indexOf(req.body.Message.bounce.bounceType) >= 0, (err, updated) => {
|
campaigns.updateMessage(message, 'bounced', req.body.Message.bounce.bounceType === 'Permanent', (err, updated) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
log.error('AWS', 'Failed updating message: %s', err.stack);
|
log.error('AWS', 'Failed updating message: %s', err.stack);
|
||||||
} else if (updated) {
|
} else if (updated) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue