RSPAMD_LOG_FLAG_DEFAULT = 0,
RSPAMD_LOG_FLAG_OPTIONAL = (1 << 0),
RSPAMD_LOG_FLAG_MIME_ALTERNATIVE = (1 << 1),
- RSPAMD_LOG_FLAG_CONDITION = (1 << 2)
+ RSPAMD_LOG_FLAG_CONDITION = (1 << 2),
+ RSPAMD_LOG_FLAG_SYMBOLS_SCORES = (1 << 3)
};
struct rspamd_log_format {
else if (rspamd_ftok_cstr_equal (&tok, "symbols", TRUE)) {
type = RSPAMD_LOG_SYMBOLS;
}
+ else if (rspamd_ftok_cstr_equal (&tok, "symbols_scores", TRUE)) {
+ type = RSPAMD_LOG_SYMBOLS;
+ flags |= RSPAMD_LOG_FLAG_SYMBOLS_SCORES;
+ }
else if (rspamd_ftok_cstr_equal (&tok, "ip", TRUE)) {
type = RSPAMD_LOG_IP;
}