mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-28 17:26:14 +00:00
I regret optimizing the structure for toml when this module was created, as it makes it difficult to define a regular schema. This commit introduces typed records for the queue helper data structure, and, unfortunately, a parsing layer to adapt between the toml data and the well-defined types. It also adjusts how lua tests are run; previously we'd co-opt the main flow of parsing by looking at an env var, but since the modules can now potentially require each other (especially the typing module) we need to de-couple from that, otherwise what happens is that we'd only ever run the typing module tests and exit. So we now have a script that imports all the modules and runs their respective `:test()` methods. refs: #211