# HG changeset patch # User Matthew Wild # Date 1737116395 0 # Node ID 73c523248558fdc4021d48339002e9068106a164 # Parent ddb0fac151acca3ab16e07fee64c87144f4aaab4 mod_anti_spam: Fix generation of error bounce stanzas diff -r ddb0fac151ac -r 73c523248558 mod_anti_spam/mod_anti_spam.lua --- a/mod_anti_spam/mod_anti_spam.lua Fri Jan 17 11:19:05 2025 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Fri Jan 17 12:19:55 2025 +0000 @@ -50,7 +50,7 @@ if action == "bounce" then module:log("debug", "Bouncing likely spam %s from %s (%s)", event.stanza.name, event.stanza.attr.from, reason); - event.origin.send(st.error_reply("cancel", "policy-violation", reason_messages[reason] or reason_messages.default)); + event.origin.send(st.error_reply(event.stanza, "cancel", "policy-violation", reason_messages[reason] or reason_messages.default)); else module:log("debug", "Discarding likely spam %s from %s (%s)", event.stanza.name, event.stanza.attr.from, reason); end