Mercurial > prosody-modules
comparison mod_report_forward/mod_report_forward.lua @ 5856:6fe4dab27187
mod_report_forward: Depend on mod_spam_reporting for auto-loading
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 03 Mar 2024 16:10:14 +0000 |
| parents | 05356f2d4425 |
| children | ff90dad75352 |
comparison
equal
deleted
inserted
replaced
| 5855:05356f2d4425 | 5856:6fe4dab27187 |
|---|---|
| 3 local st = require "util.stanza"; | 3 local st = require "util.stanza"; |
| 4 local url = require "socket.url"; | 4 local url = require "socket.url"; |
| 5 | 5 |
| 6 local new_id = require "util.id".short; | 6 local new_id = require "util.id".short; |
| 7 local render = require"util.interpolation".new("%b{}", function (s) return s; end); | 7 local render = require"util.interpolation".new("%b{}", function (s) return s; end); |
| 8 | |
| 9 module:depends("spam_reporting"); | |
| 8 | 10 |
| 9 local destinations = module:get_option_set("report_forward_to", {}); | 11 local destinations = module:get_option_set("report_forward_to", {}); |
| 10 | 12 |
| 11 local archive = module:open_store("archive", "archive"); | 13 local archive = module:open_store("archive", "archive"); |
| 12 | 14 |
