Software /
code /
prosody
Comparison
plugins/mod_carbons.lua @ 10781:f7e8d299513f
mod_carbons: Carbon incoming message delivery failure reports
Ensures that all your clients know about sent messages that failed.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Apr 2020 20:23:50 +0200 |
parent | 10780:22bbc644c5eb |
child | 10782:6b776f80b96e |
comparison
equal
deleted
inserted
replaced
10780:22bbc644c5eb | 10781:f7e8d299513f |
---|---|
39 return true, "type"; | 39 return true, "type"; |
40 end | 40 end |
41 | 41 |
42 if st_type == "normal" and stanza:get_child("body") then | 42 if st_type == "normal" and stanza:get_child("body") then |
43 return true, "type"; | 43 return true, "type"; |
44 end | |
45 | |
46 if st_type == "error" and not c2s and not (stanza.attr.from or ""):find("/") then | |
47 return true, "bounce"; | |
44 end | 48 end |
45 | 49 |
46 return false, "default"; | 50 return false, "default"; |
47 end | 51 end |
48 | 52 |