aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-24 14:54:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-24 14:54:13 +0000
commit917bbfd3a390bcb1142b41216d540313c8c5d2bd (patch)
tree1e73c460ea836a46a5cf4f5c4da73fe28fd739e6 /lualib/rspamadm
parentb50b9693911632124d3209770cfe4c1366283395 (diff)
downloadrspamd-917bbfd3a390bcb1142b41216d540313c8c5d2bd.tar.gz
rspamd-917bbfd3a390bcb1142b41216d540313c8c5d2bd.zip
[Minor] Rspamadm: Allow `-` as filename to read from stdin
Diffstat (limited to 'lualib/rspamadm')
-rw-r--r--lualib/rspamadm/mime.lua2
1 files changed, 1 insertions, 1 deletions
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)