diff options
author | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-02-17 18:57:05 +0300 |
---|---|---|
committer | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-02-17 18:57:05 +0300 |
commit | 94edb9f04b2144be4a78556653451456738ba767 (patch) | |
tree | 59418513a28438035b0cdde8ef408622ebb2f52b /src/plugins/spf.c | |
parent | 3ec2330431b62e442f4fdea41cacab152cbcee55 (diff) | |
download | rspamd-94edb9f04b2144be4a78556653451456738ba767.tar.gz rspamd-94edb9f04b2144be4a78556653451456738ba767.zip |
* Add ability to add custom messages to rspamd output
* Add messages from spf checks
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index ae762f12a..57a6f4407 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -155,13 +155,16 @@ spf_plugin_callback (struct spf_record *record, struct worker_task *task) switch (addr->mech) { case SPF_FAIL: insert_result (task, spf_module_ctx->metric, spf_module_ctx->symbol_fail, 1, g_list_prepend (NULL, addr->spf_string)); + task->messages = g_list_prepend (task->messages, "(SPF): spf fail"); break; case SPF_SOFT_FAIL: case SPF_NEUTRAL: insert_result (task, spf_module_ctx->metric, spf_module_ctx->symbol_softfail, 1, g_list_prepend (NULL, addr->spf_string)); + task->messages = g_list_prepend (task->messages, "(SPF): spf softfail"); break; default: insert_result (task, spf_module_ctx->metric, spf_module_ctx->symbol_allow, 1, g_list_prepend (NULL, addr->spf_string)); + task->messages = g_list_prepend (task->messages, "(SPF): spf allow"); break; } /* Stop parsing */ |