From: Vsevolod Stakhov Date: Wed, 15 Apr 2020 11:56:52 +0000 (+0100) Subject: [Minor] Rspamadm: Add urls --full option X-Git-Tag: 2.6~525 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4068f84ca27fef18cd6d34bb271a7a3ee4ef89b2;p=rspamd.git [Minor] Rspamadm: Add urls --full option --- 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