aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/metadata_exporter.lua
diff options
context:
space:
mode:
authorAndré Peters <andre.peters@debinux.de>2019-01-14 08:19:59 +0100
committerGitHub <noreply@github.com>2019-01-14 08:19:59 +0100
commit96603c2db41a173421a6a97cb5f4832c4fbe4b4f (patch)
tree728cb4428d1a3a8f60dc7a68f747da0a4c08a69f /src/plugins/lua/metadata_exporter.lua
parent776a0273b5dc02498fcc24373bdb76ae608219fa (diff)
downloadrspamd-96603c2db41a173421a6a97cb5f4832c4fbe4b4f.tar.gz
rspamd-96603c2db41a173421a6a97cb5f4832c4fbe4b4f.zip
Add subject to get_general_metadata
Diffstat (limited to 'src/plugins/lua/metadata_exporter.lua')
-rw-r--r--src/plugins/lua/metadata_exporter.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua
index 951142368..8420bd554 100644
--- a/src/plugins/lua/metadata_exporter.lua
+++ b/src/plugins/lua/metadata_exporter.lua
@@ -74,6 +74,7 @@ local function get_general_metadata(task, flatten, no_content)
end
r.user = task:get_user() or 'unknown'
r.qid = task:get_queue_id() or 'unknown'
+ r.subject = task:get_subject() or 'unknown'
r.action = task:get_metric_action('default')
local s = task:get_metric_score('default')[1]