commit 8cc2fca: [Minor] Lua_magic: Add vcf magic pattern

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jan 12 15:49:06 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-01-12 15:21:40 +0000
URL: https://github.com/rspamd/rspamd/commit/8cc2fca85daf91b18e6eb806a6b63c23db5cd3bf

[Minor] Lua_magic: Add vcf magic pattern

---
 lualib/lua_magic/patterns.lua | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lualib/lua_magic/patterns.lua b/lualib/lua_magic/patterns.lua
index 8bdc7ea44..2cf138857 100644
--- a/lualib/lua_magic/patterns.lua
+++ b/lualib/lua_magic/patterns.lua
@@ -157,6 +157,15 @@ local patterns = {
       }
     }
   },
+  vcf = {
+    matches = {
+      {
+        string = [[BEGIN:VCARD]],
+        weight = 60,
+        relative_position = 0,
+      }
+    }
+  },
   -- Archives
   arj = {
     matches = {


More information about the Commits mailing list