]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add the test for the previous fix
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Sep 2021 12:01:54 +0000 (13:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 22 Sep 2021 12:01:54 +0000 (13:01 +0100)
test/lua/unit/received.lua

index 606424363294027bda2e09700b8770636b3bedd1..34882e1cc500c7b79d68f8647a70ce73e451389b 100644 (file)
@@ -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)