From 6137f93d23265d839cca09d0b5da1018751635e0 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 17 Nov 2022 18:17:41 +0100 Subject: [PATCH] add a GTUBE test to check the antispam --- tests/compose/filters/02_email_antispam.sh | 6 ++++++ tests/compose/filters/gtube.txt | 1 + 2 files changed, 7 insertions(+) create mode 100755 tests/compose/filters/02_email_antispam.sh create mode 100644 tests/compose/filters/gtube.txt diff --git a/tests/compose/filters/02_email_antispam.sh b/tests/compose/filters/02_email_antispam.sh new file mode 100755 index 00000000..009a13a2 --- /dev/null +++ b/tests/compose/filters/02_email_antispam.sh @@ -0,0 +1,6 @@ +python3 tests/email_test.py message-virus "tests/compose/filters/gtube.txt" +if [ $? -eq 99 ]; then + exit 0 +else + exit 1 +fi diff --git a/tests/compose/filters/gtube.txt b/tests/compose/filters/gtube.txt new file mode 100644 index 00000000..728c7cc6 --- /dev/null +++ b/tests/compose/filters/gtube.txt @@ -0,0 +1 @@ +XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X