]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Lua_magic: Add vcf magic pattern
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Jan 2021 15:21:40 +0000 (15:21 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Jan 2021 15:21:40 +0000 (15:21 +0000)
lualib/lua_magic/patterns.lua

index 8bdc7ea443639dfe90f18cd591b43a222524db4a..2cf138857210ff52fcb0fe253e609c3134d4051f 100644 (file)
@@ -157,6 +157,15 @@ local patterns = {
       }
     }
   },
+  vcf = {
+    matches = {
+      {
+        string = [[BEGIN:VCARD]],
+        weight = 60,
+        relative_position = 0,
+      }
+    }
+  },
   -- Archives
   arj = {
     matches = {