aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_content/pdf.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-26 17:29:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-26 17:29:42 +0000
commitd90b05640bcea0544ea698ccec35abbfd2e313b0 (patch)
tree57aa2fa7bf67176eb6cb93519a506b3d62a95bb0 /lualib/lua_content/pdf.lua
parent69b1c2e53f9427a6529f4a1b296de8f8f1ee7322 (diff)
downloadrspamd-d90b05640bcea0544ea698ccec35abbfd2e313b0.tar.gz
rspamd-d90b05640bcea0544ea698ccec35abbfd2e313b0.zip
[Project] Some rework about specific data that is now tagged
Diffstat (limited to 'lualib/lua_content/pdf.lua')
-rw-r--r--lualib/lua_content/pdf.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index 9ff3d0260..3ff9f0f64 100644
--- a/lualib/lua_content/pdf.lua
+++ b/lualib/lua_content/pdf.lua
@@ -71,11 +71,18 @@ end
-- Call immediately on require
compile_tries()
+local function extract_text_data(specific)
+ return nil -- NYI
+end
+
local function process_pdf(input, _, task)
local matches = pdf_trie:match(input)
- local pdf_output = {}
if matches then
+ local pdf_output = {
+ tag = 'pdf',
+ extract_text = extract_text_data,
+ }
local grouped_processors = {}
for npat,matched_positions in pairs(matches) do
local index = pdf_indexes[npat]