]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Include content URLs in rspamadm mime urls output
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 12 Jan 2026 12:18:33 +0000 (12:18 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 12 Jan 2026 12:18:33 +0000 (12:18 +0000)
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.

lualib/rspamadm/mime.lua

index b55e4ae0368d53a81fdb274d831adecaf37000a4..29b3cd7c24823e395dbdc5c96b940ea0852e403e 100644 (file)
@@ -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