aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-15 12:56:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-15 12:56:52 +0100
commit4068f84ca27fef18cd6d34bb271a7a3ee4ef89b2 (patch)
tree7fb24e0f78ced0886eb690028a4480b5ed10690c
parent0609488580672b56ef856a9ec06caff6fa8976e0 (diff)
downloadrspamd-4068f84ca27fef18cd6d34bb271a7a3ee4ef89b2.tar.gz
rspamd-4068f84ca27fef18cd6d34bb271a7a3ee4ef89b2.zip
[Minor] Rspamadm: Add urls --full option
-rw-r--r--lualib/rspamadm/mime.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua
index 8ef82f1c0..06b163d9b 100644
--- a/lualib/rspamadm/mime.lua
+++ b/lualib/rspamadm/mime.lua
@@ -116,7 +116,9 @@ urls:mutex(
urls:flag "-t --tld"
:description "Get TLDs only",
urls:flag "-H --host"
- :description "Get hosts only"
+ :description "Get hosts only",
+ urls:flag "-f --full"
+ :description "Show piecewise urls as processed by Rspamd"
)
urls:flag "-u --unique"
@@ -513,6 +515,8 @@ local function urls_handler(opts)
s = u:get_tld()
elseif opts.host then
s = u:get_host()
+ elseif opts.full then
+ s = rspamd_logger.slog('%s: %s', u:get_text(), u:to_table())
else
s = u:get_text()
end