aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-01 15:03:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-01 15:03:10 +0100
commitc1f9bfc86391e4be50a5fbd16a7b899288a3a84c (patch)
treeeb61246b0eccd1aff0fc083a15cda752d058d1ec /test
parent6ea2346e8f2baeeadd9dd5e61610281f2838ca07 (diff)
downloadrspamd-c1f9bfc86391e4be50a5fbd16a7b899288a3a84c.tar.gz
rspamd-c1f9bfc86391e4be50a5fbd16a7b899288a3a84c.zip
[Fix] Fix parsing of the received headers with empty part
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/received.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/lua/unit/received.lua b/test/lua/unit/received.lua
index fc1f24de8..908c1904e 100644
--- a/test/lua/unit/received.lua
+++ b/test/lua/unit/received.lua
@@ -121,7 +121,14 @@ context("Received headers parser", function()
{
by_hostname = 'example.com',
},
- }
+ },
+ {[[from 171-29.br (1-1-1-1.z.com.br [1.1.1.1]) by x.com.br (Postfix) with;ESMTP id 44QShF6xj4z1X for <y.br>; Thu, 21 Mar 2019 23:45:46 -0300 : <g @yi.br>]],
+ {
+ from_hostname = '171-29.br',
+ real_ip = '1.1.1.1',
+ by_hostname = 'x.com.br',
+ }
+ },
}
local task = ffi.C.rspamd_task_new(nil, nil)