]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix detection rules
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Jan 2020 12:47:42 +0000 (12:47 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 21 Jan 2020 12:47:42 +0000 (12:47 +0000)
rules/content.lua

index fb7a0ad583179bcabb65caec02c2faee872f3f8f..1f591c2d73159dc267ee5787702c7684e18cb8f3 100644 (file)
@@ -24,9 +24,9 @@ local function process_pdf_specific(task, part, specific)
     end
   end
 
-  if specific.openaction and #specific.openaction > 10 then
+  if specific.scripts then
     task:insert_result('PDF_JAVASCRIPT', 1.0, part:get_filename())
-    suspicious_factor = suspicious_factor + 0.5
+    suspicious_factor = suspicious_factor + 0.1
   end
 
   if specific.suspicious then