Prevent no reply loop

This commit is contained in:
Patrick Fic
2022-09-24 11:04:08 -07:00
parent 9249222fab
commit 0fee89623c

View File

@@ -226,6 +226,11 @@ exports.emailBounce = async function (req, res, next) {
messageId = header.value;
}
});
if (replyTo === "noreply@imex.online") {
res.sendStatus(200);
return;
}
//If it's bounced, log it as bounced in audit log. Send an email to the user.
const result = await client.request(queries.UPDATE_EMAIL_AUDIT, {
sesid: messageId,