From: Vsevolod Stakhov Date: Mon, 12 Jan 2026 12:18:33 +0000 (+0000) Subject: [Fix] Include content URLs in rspamadm mime urls output X-Git-Tag: 4.0.0~204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67b5ec7663fd5f782e55b7b67194cd32416faa34;p=thirdparty%2Frspamd.git [Fix] Include content URLs in rspamadm mime urls output Change get_urls(true) to get_urls_filtered() to include URLs extracted from content (e.g., PDF attachments) in the output. The get_urls() function excludes RSPAMD_URL_FLAG_CONTENT URLs by default for backward compatibility, but get_urls_filtered() with no arguments returns all URLs including content URLs. --- diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua index b55e4ae036..29b3cd7c24 100644 --- a/lualib/rspamadm/mime.lua +++ b/lualib/rspamadm/mime.lua @@ -773,7 +773,8 @@ local function urls_handler(opts) end end - for _, u in ipairs(task:get_urls(true)) do + -- Use get_urls_filtered with nil params to get all URLs including content URLs + for _, u in ipairs(task:get_urls_filtered()) do process_url(u) end