commit 48d7dbd: [Test] Add the test for the previous fix

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Sep 22 12:07:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-09-22 13:01:54 +0100
URL: https://github.com/rspamd/rspamd/commit/48d7dbdb49b0f4ec7771297079784706f9c481d3 (HEAD -> master)

[Test] Add the test for the previous fix

---
 test/lua/unit/received.lua | 8 ++++++++
 1 file changed, 8 insertions(+)

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)


More information about the Commits mailing list