aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_carbons.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-26 20:23:50 +0200
committerKim Alvefur <zash@zash.se>2020-04-26 20:23:50 +0200
commit5694b402f2109b2cec6a40195467e77de7e51536 (patch)
tree83bc63dc8243842fbb5f9ae34f036e5fad91332c /plugins/mod_carbons.lua
parentdb10f4fe1707d3b2610a5067a739108ad037adb7 (diff)
downloadprosody-5694b402f2109b2cec6a40195467e77de7e51536.tar.gz
prosody-5694b402f2109b2cec6a40195467e77de7e51536.zip
mod_carbons: Carbon incoming message delivery failure reports
Ensures that all your clients know about sent messages that failed.
Diffstat (limited to 'plugins/mod_carbons.lua')
-rw-r--r--plugins/mod_carbons.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_carbons.lua b/plugins/mod_carbons.lua
index 09518bf7..9befc9cb 100644
--- a/plugins/mod_carbons.lua
+++ b/plugins/mod_carbons.lua
@@ -43,6 +43,10 @@ local function should_copy(stanza, c2s, user_bare)
return true, "type";
end
+ if st_type == "error" and not c2s and not (stanza.attr.from or ""):find("/") then
+ return true, "bounce";
+ end
+
return false, "default";
end