From: Vsevolod Stakhov Date: Wed, 22 Sep 2021 12:01:54 +0000 (+0100) Subject: [Test] Add the test for the previous fix X-Git-Tag: 3.1~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48d7dbdb49b0f4ec7771297079784706f9c481d3;p=thirdparty%2Frspamd.git [Test] Add the test for the previous fix --- diff --git a/test/lua/unit/received.lua b/test/lua/unit/received.lua index 6064243632..34882e1cc5 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)