return checkpoint;
}
-static gboolean
+gboolean
rspamd_symbols_cache_process_settings (struct rspamd_task *task,
struct symbols_cache *cache)
{
checkpoint = task->checkpoint;
}
- if (task->settings) {
- if (rspamd_symbols_cache_process_settings (task, cache)) {
- return TRUE;
- }
- }
-
msg_debug_task ("symbols processing stage at pass: %d", checkpoint->pass);
start_events_pending = rspamd_session_events_pending (task->s);
gboolean rspamd_symbols_cache_set_cbdata (struct symbols_cache *cache,
const gchar *symbol, struct rspamd_abstract_callback_data *cbdata);
+/**
+ * Process settings for task
+ * @param task
+ * @param cache
+ * @return
+ */
+gboolean rspamd_symbols_cache_process_settings (struct rspamd_task *task,
+ struct symbols_cache *cache);
+
#endif
}
}
}
+
+ rspamd_symbols_cache_process_settings (task, task->cfg->cache);
}
else {
return luaL_error (L, "invalid arguments");