From fb0fba9da782881d45ea40bf88f226e410e65efb Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Sat, 27 Jan 2024 16:12:22 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> --- mailserver.env | 4 ++-- test/tests/parallel/set1/spam_virus/amavis.bats | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mailserver.env b/mailserver.env index 9df064f2..b3586d45 100644 --- a/mailserver.env +++ b/mailserver.env @@ -134,9 +134,9 @@ ENABLE_IMAP=1 # **0** => Disabled ENABLE_CLAMAV=0 -# Add the value as prefix to the mail subject when spam is detected +# Add the value as a prefix to the mail subject when spam is detected. # NOTE: By default spam is delivered to a junk folder, reducing the value of a subject prefix for spam. -# NOTE: If not using Docker Compose, other CRI may require the single quotes removed. +# NOTE: When not using Docker Compose, other CRI may not support quote-wrapping the value here to preserve any trailing white-space. SPAM_SUBJECT= # Enables Rspamd diff --git a/test/tests/parallel/set1/spam_virus/amavis.bats b/test/tests/parallel/set1/spam_virus/amavis.bats index 73f94e8b..bf2841b1 100644 --- a/test/tests/parallel/set1/spam_virus/amavis.bats +++ b/test/tests/parallel/set1/spam_virus/amavis.bats @@ -74,6 +74,8 @@ function teardown_file() { assert_success assert_output --partial '$sa_kill_level_deflt = 3.0;' + # This feature is handled by our SPAM_SUBJECT ENV through a sieve script instead. + # Thus the feature here should always be disabled via the 'undef' value. _run_in_container grep 'sa_spam_subject_tag' "${AMAVIS_DEFAULTS_FILE}" assert_success assert_output --partial '$sa_spam_subject_tag = undef;'