Mercurial > prosody-modules
comparison mod_report_forward/mod_report_forward.lua @ 5855:05356f2d4425
mod_report_forward: Open archive store correctly (thanks Menel)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 03 Mar 2024 16:05:04 +0000 |
parents | fcfe490de8a4 |
children | 6fe4dab27187 |
comparison
equal
deleted
inserted
replaced
5854:fcfe490de8a4 | 5855:05356f2d4425 |
---|---|
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 | 8 |
9 local destinations = module:get_option_set("report_forward_to", {}); | 9 local destinations = module:get_option_set("report_forward_to", {}); |
10 | 10 |
11 local archive = module:open("archive"); | 11 local archive = module:open_store("archive", "archive"); |
12 | 12 |
13 local cache_size = module:get_option_number("report_forward_contact_cache_size", 256); | 13 local cache_size = module:get_option_number("report_forward_contact_cache_size", 256); |
14 local report_to_origin = module:get_option_boolean("report_forward_to_origin", true); | 14 local report_to_origin = module:get_option_boolean("report_forward_to_origin", true); |
15 local contact_lookup_timeout = module:get_option_number("report_forward_contact_lookup_timeout", 180); | 15 local contact_lookup_timeout = module:get_option_number("report_forward_contact_lookup_timeout", 180); |
16 | 16 |