diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-02 13:38:57 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-02 13:38:57 +0000 |
commit | a1bdb1f4f56ea6b3877e9c9d030d085728f0d566 (patch) | |
tree | 58ad60e9c78d8dfbcd06f5d314a5c21465f8f1e2 /src/plugins/spf.c | |
parent | 99488d5a2a601f4a4ae30036b07189ff9c17ed3c (diff) | |
download | rspamd-a1bdb1f4f56ea6b3877e9c9d030d085728f0d566.tar.gz rspamd-a1bdb1f4f56ea6b3877e9c9d030d085728f0d566.zip |
[Rework] Make rspamd protocol messages useful
Each message is now represented by a string and category, so messages in
metric is an UCL object of the following format:
{
"category": "string"
}
The significant category is `smtp_message` which should be used by
rmilter to send a custom SMTP reply to a client.
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 613c7a189..98ca09c37 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -465,7 +465,10 @@ spf_check_element (struct spf_resolved *rec, struct spf_addr *addr, spf_symbol, 1, opts); - task->messages = g_list_prepend (task->messages, (gpointer)spf_message); + ucl_object_insert_key (task->messages, + ucl_object_fromstring (spf_message), "spf", 0, + false); + return TRUE; } |