Mercurial > prosody-modules
comparison mod_report_forward/README.md @ 6110:9db1529c06c2
Merge upstream
| author | tmolitor <thilo@eightysoft.de> |
|---|---|
| date | Sun, 05 Jan 2025 17:50:02 +0100 |
| parents | 744127959dd1 |
| children |
comparison
equal
deleted
inserted
replaced
| 6109:4cb1cad2badd | 6110:9db1529c06c2 |
|---|---|
| 21 | 21 |
| 22 There are two main options. You can set `report_forward_to` which accepts a | 22 There are two main options. You can set `report_forward_to` which accepts a |
| 23 list of JIDs to send all reports to (default is empty): | 23 list of JIDs to send all reports to (default is empty): |
| 24 | 24 |
| 25 ```lua | 25 ```lua |
| 26 report_forward_to = { "antispam.example.com" } | 26 report_forward_to = { "admin@example.net", "antispam.example2.com" } |
| 27 ``` | 27 ``` |
| 28 | 28 |
| 29 You can also control whether the module sends a report to the server from | 29 You can also control whether the module sends a report to the server from |
| 30 which the spam/abuse originated (default is `true`): | 30 which the spam/abuse originated (default is `true`): |
| 31 | 31 |
| 33 report_forward_to_origin = false | 33 report_forward_to_origin = false |
| 34 ``` | 34 ``` |
| 35 | 35 |
| 36 The module looks up an abuse report address using XEP-0157 (only XMPP | 36 The module looks up an abuse report address using XEP-0157 (only XMPP |
| 37 addresses are accepted). If it fails to find any suitable destination, it will | 37 addresses are accepted). If it fails to find any suitable destination, it will |
| 38 log a warning and not send the report. | 38 fall back to sending the report to the domain itself unless `report_forward_to_origin_fallback` |
| 39 is disabled (set to `false`). If the fallback is disabled, it will log a | |
| 40 warning and not send the report. | |
| 39 | 41 |
| 40 | 42 |
| 41 | 43 |
| 42 ## Protocol | 44 ## Protocol |
| 43 | 45 |
| 73 <body>Spam, Spam, Spam, Spam, Spam, Spam, baked beans, Spam, Spam and Spam!</body> | 75 <body>Spam, Spam, Spam, Spam, Spam, Spam, baked beans, Spam, Spam and Spam!</body> |
| 74 </message> | 76 </message> |
| 75 </forwarded> | 77 </forwarded> |
| 76 </message> | 78 </message> |
| 77 ``` | 79 ``` |
| 80 | |
| 81 ## Compability | |
| 82 | |
| 83 Prosody-Version Status | |
| 84 ----------------- ---------------------- | |
| 85 trunk Works as of 07.12.22 | |
| 86 0.12 Works |
