aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit9e3ef1c01bc14f51a41e5eb413cb05118489bd7f (patch)
tree83bc63dc8243842fbb5f9ae34f036e5fad91332c /plugins
parentbec170ac73c3b7763cb66909c0301d11d316ff47 (diff)
downloadprosody-9e3ef1c01bc14f51a41e5eb413cb05118489bd7f.tar.gz
prosody-9e3ef1c01bc14f51a41e5eb413cb05118489bd7f.zip
mod_carbons: Carbon incoming message delivery failure reports
Ensures that all your clients know about sent messages that failed.
Diffstat (limited to 'plugins')
-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