diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-22 13:01:54 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-22 13:01:54 +0100 |
commit | 48d7dbdb49b0f4ec7771297079784706f9c481d3 (patch) | |
tree | aada7219830be2e51e70bbd43a008c1c260dda7a /test | |
parent | 8492c4a1d56199763cf87645e8d2261ede2596e1 (diff) | |
download | rspamd-48d7dbdb49b0f4ec7771297079784706f9c481d3.tar.gz rspamd-48d7dbdb49b0f4ec7771297079784706f9c481d3.zip |
[Test] Add the test for the previous fix
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/unit/received.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lua/unit/received.lua b/test/lua/unit/received.lua index 606424363..34882e1cc 100644 --- a/test/lua/unit/received.lua +++ b/test/lua/unit/received.lua @@ -130,6 +130,14 @@ context("Received headers parser", function() by_hostname = 'x.com.br', } }, + {[[from [127.0.0.1] ([127.0.0.2]) + by smtp.gmail.com with ESMTPSA id xxxololo]], + { + from_hostname = '127.0.0.1', + real_ip = '127.0.0.2', + by_hostname = 'smtp.gmail.com' + } + }, } local task = ffi.C.rspamd_task_new(nil, nil) |