{
struct rspamd_rcl_section *new = NULL, *sub, *ssub;
- /* TODO: add all known rspamd sections here */
+ /*
+ * Important notice:
+ * the order of parsing is equal to order of this initialization, therefore
+ * it is possible to init some portions of config prior to others
+ */
+
/**
* Logging section
*/
G_STRUCT_OFFSET (struct rspamd_worker_conf, rlimit_maxcore),
RSPAMD_CL_FLAG_INT_32);
- /**
- * Lua handler
- */
- sub = rspamd_rcl_add_section (&new,
- "lua",
- rspamd_rcl_lua_handler,
- UCL_STRING,
- FALSE,
- TRUE);
-
/**
* Modules handler
*/
FALSE,
TRUE);
+ /**
+ * Lua handler
+ */
+ sub = rspamd_rcl_add_section (&new,
+ "lua",
+ rspamd_rcl_lua_handler,
+ UCL_STRING,
+ FALSE,
+ TRUE);
+
return new;
}