commit 4fa9b56: [TEST] PHISH Senders

korgoth1 vladislav.stakhov at gmail.com
Thu Aug 13 19:35:10 UTC 2020


Author: korgoth1
Date: 2020-08-06 17:50:41 +0300
URL: https://github.com/rspamd/rspamd/commit/4fa9b568d15933a5e5c676d9483313d3c2fa18b6 (refs/pull/3461/head)

[TEST] PHISH Senders

---
 test/functional/cases/280_rules.robot                            | 3 +++
 test/functional/messages/{phish_sender.eml => phish_sender6.eml} | 3 +--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/functional/cases/280_rules.robot b/test/functional/cases/280_rules.robot
index b62ed89bc..4308c8d78 100644
--- a/test/functional/cases/280_rules.robot
+++ b/test/functional/cases/280_rules.robot
@@ -105,6 +105,9 @@ PHISH_SENDER_E
   ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/phish_sender5.eml
   Should Contain  ${result.stdout}  SOMETHING
 
+PHISH_SENDER_ROUTING_PART
+  ${result} =  Scan Message With Rspamc  ${TESTDIR}/messages/phish_sender6.eml
+  Should Contain  ${result.stdout}  SOMETHING
 
 *** Keywords ***
 Rules Setup
diff --git a/test/functional/messages/phish_sender.eml b/test/functional/messages/phish_sender6.eml
similarity index 90%
copy from test/functional/messages/phish_sender.eml
copy to test/functional/messages/phish_sender6.eml
index 5f5dabb29..d50c43408 100644
--- a/test/functional/messages/phish_sender.eml
+++ b/test/functional/messages/phish_sender6.eml
@@ -1,7 +1,6 @@
 Received: by mail-lf1-f54.gulugulu.com with SMTP id j14so14439709lfg.9
         for <test at test.ru>; Mon, 27 Apr 2020 09:54:21 -0700 (PDT)
-From: <any at attack.com>
-From: <admin at legitimate.com>
+From: <@test.com, @test.ru:test at attack.com>
 Date: Mon, 27 Apr 2020 19:54:10 +0300
 Message-ID: <CA+1S=h4aGimA6vSBJF=t1F+5z-Mua5+Cimf+NU_NDWJk8ZNOcw at mail.gmail.com>
 Subject: Fwd:


More information about the Commits mailing list