Comment #3 on issue 1 by
hont...@flyordie.com: Documentation about using
Yes, introducing the JavaScript configuration was a step forward, but it
has still two responsibilities. It is used for typical runtime
configuration, like defining user accounts. It is also used for wiring
together the mail application from separate service objects. The boundaries
of these two are not obvious, it depends on the use case.
The best two candidates for real runtime configuration are the user
accounts and the local-recipients table (which assigns actions to other
recipient addresses). I believe it is easy to make them replaceable at
runtime, actually the only issue which must be solved is proper
concurrency. The more difficult - at least in case of the local-recipients
table, where there are many type of destinations - is to find a good data
structure, maybe a domain language, to store these data. An obvious choice
would be still using JavaScript, but evaluating it runtime if the file is
changed. But, for example, this does not really match your use case.