From 917bbfd3a390bcb1142b41216d540313c8c5d2bd Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 24 Jan 2019 14:54:13 +0000 Subject: [Minor] Rspamadm: Allow `-` as filename to read from stdin --- lualib/rspamadm/mime.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lualib') diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua index 96bdfd72c..7b633b75d 100644 --- a/lualib/rspamadm/mime.lua +++ b/lualib/rspamadm/mime.lua @@ -170,7 +170,7 @@ end local function load_task(opts, fname) if not fname then - parser:error('no file specified') + fname = '-' end local res,task = rspamd_task.load_from_file(fname, rspamd_config) -- cgit v1.2.3